From 6569bbcbbd813bbe209900457c9c768fc9ef5709 Mon Sep 17 00:00:00 2001 From: Adam Szatyin Date: Sat, 3 Apr 2021 11:01:45 +0200 Subject: [PATCH 1/3] Use CodeCov instead of SonarQube --- .github/workflows/build.yml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4630fcf1..278ade1e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,26 +13,34 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }} + strategy: + fail-fast: true + matrix: + java_version: [ 8 ] steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 + - name: Set up JDK ${{ matrix.java_version }} uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: ${{ matrix.java_version }} + - name: Cache Maven Repository uses: actions/cache@v2 with: path: ~/.m2 key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-maven - - name: Test with Sonar - run: > - ./mvnw -V --no-transfer-progress -e clean verify javadoc:javadoc - org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar - -Dsonar.host.url=https://sonarcloud.io - -Dsonar.organization=assertj - -Dsonar.projectKey=assertj_assertj-assertions-generator + + - name: Build with Maven + run: ./mvnw -V --no-transfer-progress -e clean verify javadoc:javadoc + + + - name: Upload build code coverage + uses: codecov/codecov-action@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + JAVA_VERSION: ${{ matrix.java_version }} + with: + token: ${{ secrets.CODECOV_TOKEN }} + flags: current + env_vars: JAVA_VERSION \ No newline at end of file From bd04612231a023895b90ab592949db116f1f2edf Mon Sep 17 00:00:00 2001 From: Adam Szatyin Date: Sat, 3 Apr 2021 11:23:43 +0200 Subject: [PATCH 2/3] Add badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6321bcd4..b0bf746c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ ![CI](https://github.com/assertj/assertj-assertions-generator/workflows/CI/badge.svg) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.assertj/assertj-assertions-generator-maven-plugin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.assertj/assertj-assertions-generator-maven-plugin) +[![codecov](https://codecov.io/gh/szatyinadam/assertj-assertions-generator/branch/main/graph/badge.svg?token=T0OTMN3AMY)](https://codecov.io/gh/szatyinadam/assertj-assertions-generator) ## Overview From b0f6aa22aba87447a0b966e51b347b19463668c2 Mon Sep 17 00:00:00 2001 From: Adam Szatyin Date: Sat, 3 Apr 2021 11:40:28 +0200 Subject: [PATCH 3/3] Remove token --- .github/workflows/build.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 278ade1e..f11146e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,6 +41,4 @@ jobs: env: JAVA_VERSION: ${{ matrix.java_version }} with: - token: ${{ secrets.CODECOV_TOKEN }} - flags: current env_vars: JAVA_VERSION \ No newline at end of file