From 96f91676603c00f3c550266503e8f476a05b7725 Mon Sep 17 00:00:00 2001 From: Stefan Verhoeven Date: Tue, 21 Nov 2023 12:59:21 +0100 Subject: [PATCH] Split ci in with/without sonarcloud --- .github/workflows/ci.yml | 30 +++++++++++++++++++----------- README.md | 1 + 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2004896..87acf77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,11 +15,8 @@ on: branches: [ "master" ] jobs: - build: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ${{ matrix.os }} + build-ubuntu: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: @@ -31,7 +28,6 @@ jobs: distribution: 'temurin' cache: maven - name: Cache SonarCloud packages - if: matrix.os == 'ubuntu-latest' uses: actions/cache@v3 with: path: ~/.sonar/cache @@ -42,8 +38,20 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | - if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then - xvfb-run mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=3D-e-Chem_knime-sstea - else - xvfb-run mvn -B verify - fi + xvfb-run mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=3D-e-Chem_knime-sstea + build: + strategy: + matrix: + os: [windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build and analyze + run: | + xvfb-run mvn -B verify diff --git a/README.md b/README.md index af3fcee..38b3bbd 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3257985.svg)](https://doi.org/10.5281/zenodo.3257985) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=3D-e-Chem_knime-gpcrdb&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=3D-e-Chem_knime-gpcrdb) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=3D-e-Chem_knime-gpcrdb&metric=coverage)](https://sonarcloud.io/summary/new_code?id=3D-e-Chem_knime-gpcrdb) +[![Java CI with Maven](https://github.com/3D-e-Chem/knime-gpcrdb/actions/workflows/ci.yml/badge.svg)](https://github.com/3D-e-Chem/knime-gpcrdb/actions/workflows/ci.yml) KNIME plugin for retrieving data from [https://gpcrdb.org](https://gpcrdb.org), GPCRdb website contains data, web tools and diagrams for G protein-coupled receptors (GPCRs).