From 468824f35d68f96083f112dbc1855f873ce4610e Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 14:49:16 +0100 Subject: [PATCH 01/57] Set up first version of GitHub actions --- .github/workflows/master.yml | 97 ++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 .github/workflows/master.yml diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 00000000..e83fc493 --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,97 @@ +name: Master Branch Workflow + +on: + pull_request: + branches: + - 'master' + push: + branches: + - 'master' + +jobs: + + # Compile and package the Maven project. + package: + name: Package - Generate JARs + runs-on: ${{ matrix.os }} + strategy: + matrix: + java: [ 8, 11 ] + os: [ [ ubuntu-latest, windows-latest ] ] + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + - name: Setup Java ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Maven Package + run: mvn -B clean package -DskipTests + + # Runs unit tests (via surefire-maven-plugin) and integration tests (via failsafe-maven-plugin). + test: + name: Test - Unit & Integration + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + - name: Setup Java 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Run Tests + run: mvn clean verify --batch-mode --fail-at-end + - name: Publish Test Report + if: ${{ always() }} + uses: scacap/action-surefire-report@v1 + + # Collect JaCoCo test coverage and report to Coveralls + coveralls: + name: Report - Coveralls + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + - name: Setup Java 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Run Tests + run: mvn clean test + - name: Report to Coveralls + uses: coverallsapp/github-action@v1.1.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + # Run SonarCloud static analysis. + sonar: + name: Scan - SonarCloud + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + - name: Setup Java 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: SonarCloud Scan + run: mvn -B clean verify -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # Publish the JAR artifacts to GitHub Packages. + publish: + name: Publish - GitHub Packages + runs-on: ubuntu-latest + needs: [ package, test, sonar ] + steps: + - name: Checkout Repo + uses: actions/checkout@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Publish Artifact on GitHub Packages + run: mvn -B clean deploy -DskipTests + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 561b587805d990f8cbb7658c6e74e3727dc15d69 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 15:05:09 +0100 Subject: [PATCH 02/57] Add minor fixes --- .github/workflows/master.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index e83fc493..1c3b3b6c 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -1,4 +1,4 @@ -name: Master Branch Workflow +name: Master Branch on: pull_request: @@ -11,13 +11,13 @@ on: jobs: # Compile and package the Maven project. - package: - name: Package - Generate JARs - runs-on: ${{ matrix.os }} + compile: + name: Compile strategy: matrix: - java: [ 8, 11 ] + java: [ 1.8, 11 ] os: [ [ ubuntu-latest, windows-latest ] ] + runs-on: ${{ matrix.os }} steps: - name: Checkout Repo uses: actions/checkout@v2 @@ -25,12 +25,12 @@ jobs: uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} - - name: Maven Package - run: mvn -B clean package -DskipTests + - name: Maven Compile + run: mvn -q clean compile # Runs unit tests (via surefire-maven-plugin) and integration tests (via failsafe-maven-plugin). test: - name: Test - Unit & Integration + name: Test runs-on: ubuntu-latest steps: - name: Checkout Repo @@ -40,14 +40,14 @@ jobs: with: java-version: 11 - name: Run Tests - run: mvn clean verify --batch-mode --fail-at-end + run: mvn -q clean verify --batch-mode --fail-at-end - name: Publish Test Report if: ${{ always() }} uses: scacap/action-surefire-report@v1 # Collect JaCoCo test coverage and report to Coveralls coveralls: - name: Report - Coveralls + name: Coveralls runs-on: ubuntu-latest steps: - name: Checkout Repo @@ -57,7 +57,7 @@ jobs: with: java-version: 11 - name: Run Tests - run: mvn clean test + run: mvn -q clean test jacoco:report - name: Report to Coveralls uses: coverallsapp/github-action@v1.1.2 with: @@ -65,7 +65,7 @@ jobs: # Run SonarCloud static analysis. sonar: - name: Scan - SonarCloud + name: SonarCloud runs-on: ubuntu-latest steps: - name: Checkout Repo @@ -75,13 +75,13 @@ jobs: with: java-version: 11 - name: SonarCloud Scan - run: mvn -B clean verify -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} + run: mvn -q clean test coveralls:report -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Publish the JAR artifacts to GitHub Packages. publish: - name: Publish - GitHub Packages + name: Publish runs-on: ubuntu-latest needs: [ package, test, sonar ] steps: @@ -92,6 +92,6 @@ jobs: with: java-version: 11 - name: Publish Artifact on GitHub Packages - run: mvn -B clean deploy -DskipTests + run: mvn -q clean deploy -DskipTests env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 4a1b7fd98af44201ca8d33c608f97353dc269d3c Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 15:13:57 +0100 Subject: [PATCH 03/57] change header --- .github/workflows/master.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 1c3b3b6c..158835be 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -1,12 +1,11 @@ -name: Master Branch - +name: Jobs on: pull_request: branches: - - 'master' + - master push: branches: - - 'master' + - master jobs: From c3ca7581a574e4002331fc29ec4d0191e15a8297 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 15:27:29 +0100 Subject: [PATCH 04/57] Change config file --- .github/workflows/master.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 158835be..d073a1f4 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -1,21 +1,18 @@ name: Jobs on: - pull_request: - branches: - - master push: - branches: - - master + branches: [ master ] + pull_request: + branches: [ master ] jobs: - # Compile and package the Maven project. compile: name: Compile strategy: matrix: - java: [ 1.8, 11 ] - os: [ [ ubuntu-latest, windows-latest ] ] + os: [ ubuntu-18.04, macOS-10.15, windows-2019 ] + java: [ 8, 11, 15 ] runs-on: ${{ matrix.os }} steps: - name: Checkout Repo From e8f675aa2afb114f45bf0465c846271c22484592 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 15:32:33 +0100 Subject: [PATCH 05/57] Change name --- .github/workflows/master.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index d073a1f4..a26d805a 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -1,4 +1,4 @@ -name: Jobs +name: master on: push: branches: [ master ] From 60a4a22bf527ea91264e881303f61e5460ddbda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Soto=20Valero?= Date: Thu, 25 Mar 2021 15:39:19 +0100 Subject: [PATCH 06/57] Update master.yml --- .github/workflows/master.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index a26d805a..f96cf4c8 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -1,4 +1,5 @@ name: master + on: push: branches: [ master ] @@ -79,7 +80,7 @@ jobs: publish: name: Publish runs-on: ubuntu-latest - needs: [ package, test, sonar ] + needs: [ compile, test, sonar ] steps: - name: Checkout Repo uses: actions/checkout@v1 From 0e0ebc0e55347e82de1a2e06c4b0205ee70e6ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Soto=20Valero?= Date: Thu, 25 Mar 2021 15:47:16 +0100 Subject: [PATCH 07/57] Update master.yml --- .github/workflows/master.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index f96cf4c8..861f4a4e 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -12,8 +12,8 @@ jobs: name: Compile strategy: matrix: - os: [ ubuntu-18.04, macOS-10.15, windows-2019 ] - java: [ 8, 11, 15 ] + os: [ ubuntu-latest, windows-latest ] + java: [ 8, 11 ] runs-on: ${{ matrix.os }} steps: - name: Checkout Repo @@ -23,7 +23,7 @@ jobs: with: java-version: ${{ matrix.java }} - name: Maven Compile - run: mvn -q clean compile + run: mvn clean compile --errors --batch-mode # Runs unit tests (via surefire-maven-plugin) and integration tests (via failsafe-maven-plugin). test: @@ -37,7 +37,7 @@ jobs: with: java-version: 11 - name: Run Tests - run: mvn -q clean verify --batch-mode --fail-at-end + run: mvn clean verify --errors --batch-mode --fail-at-end - name: Publish Test Report if: ${{ always() }} uses: scacap/action-surefire-report@v1 @@ -54,7 +54,7 @@ jobs: with: java-version: 11 - name: Run Tests - run: mvn -q clean test jacoco:report + run: mvn clean test jacoco:report --errors --batch-mode - name: Report to Coveralls uses: coverallsapp/github-action@v1.1.2 with: @@ -72,7 +72,7 @@ jobs: with: java-version: 11 - name: SonarCloud Scan - run: mvn -q clean test coveralls:report -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} + run: mvn clean test coveralls:report -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} --errors --batch-mode env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -89,6 +89,6 @@ jobs: with: java-version: 11 - name: Publish Artifact on GitHub Packages - run: mvn -q clean deploy -DskipTests + run: mvn clean deploy -DskipTests --errors --batch-mode env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 6bbb6cfcc53146a3f73a7ed16906687eb6713fac Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 17:39:40 +0100 Subject: [PATCH 08/57] Change file name --- .github/workflows/build.yml | 96 ++++++++++++++++++++++++++++++++++++ .github/workflows/master.yml | 94 ----------------------------------- 2 files changed, 96 insertions(+), 94 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/master.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..d3043ed7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,96 @@ +name: build + +on: [push, pull_request] + +jobs: + build: + name: Compile + strategy: + matrix: + os: [ ubuntu-latest, windows-latest ] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + - name: Setup Java ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Cache the Maven packages to speed up build + uses: actions/cache@v1 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Unit Test + run: mvn clean test + - name: Generate coverage report + run: mvn jacoco:report + +# # Runs unit tests (via surefire-maven-plugin) and integration tests (via failsafe-maven-plugin). +# test: +# name: Test +# runs-on: ubuntu-latest +# steps: +# - name: Checkout Repo +# uses: actions/checkout@v2 +# - name: Setup Java 11 +# uses: actions/setup-java@v1 +# with: +# java-version: 11 +# - name: Run Tests +# run: mvn clean verify --errors --batch-mode --fail-at-end +# - name: Publish Test Report +# if: ${{ always() }} +# uses: scacap/action-surefire-report@v1 +# +# # Collect JaCoCo test coverage and report to Coveralls +# coveralls: +# name: Coveralls +# runs-on: ubuntu-latest +# steps: +# - name: Checkout Repo +# uses: actions/checkout@v2 +# - name: Setup Java 11 +# uses: actions/setup-java@v1 +# with: +# java-version: 11 +# - name: Run Tests +# run: mvn clean test jacoco:report --errors --batch-mode +# - name: Report to Coveralls +# uses: coverallsapp/github-action@v1.1.2 +# with: +# github-token: ${{ secrets.GITHUB_TOKEN }} +# +# # Run SonarCloud static analysis. +# sonar: +# name: SonarCloud +# runs-on: ubuntu-latest +# steps: +# - name: Checkout Repo +# uses: actions/checkout@v2 +# - name: Setup Java 11 +# uses: actions/setup-java@v1 +# with: +# java-version: 11 +# - name: SonarCloud Scan +# run: mvn clean test coveralls:report -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} --errors --batch-mode +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# +# # Publish the JAR artifacts to GitHub Packages. +# publish: +# name: Publish +# runs-on: ubuntu-latest +# needs: [ compile, test, sonar ] +# steps: +# - name: Checkout Repo +# uses: actions/checkout@v1 +# - name: Set up JDK 11 +# uses: actions/setup-java@v1 +# with: +# java-version: 11 +# - name: Publish Artifact on GitHub Packages +# run: mvn clean deploy -DskipTests --errors --batch-mode +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml deleted file mode 100644 index f96cf4c8..00000000 --- a/.github/workflows/master.yml +++ /dev/null @@ -1,94 +0,0 @@ -name: master - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - # Compile and package the Maven project. - compile: - name: Compile - strategy: - matrix: - os: [ ubuntu-18.04, macOS-10.15, windows-2019 ] - java: [ 8, 11, 15 ] - runs-on: ${{ matrix.os }} - steps: - - name: Checkout Repo - uses: actions/checkout@v2 - - name: Setup Java ${{ matrix.java }} - uses: actions/setup-java@v1 - with: - java-version: ${{ matrix.java }} - - name: Maven Compile - run: mvn -q clean compile - - # Runs unit tests (via surefire-maven-plugin) and integration tests (via failsafe-maven-plugin). - test: - name: Test - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v2 - - name: Setup Java 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Run Tests - run: mvn -q clean verify --batch-mode --fail-at-end - - name: Publish Test Report - if: ${{ always() }} - uses: scacap/action-surefire-report@v1 - - # Collect JaCoCo test coverage and report to Coveralls - coveralls: - name: Coveralls - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v2 - - name: Setup Java 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Run Tests - run: mvn -q clean test jacoco:report - - name: Report to Coveralls - uses: coverallsapp/github-action@v1.1.2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - # Run SonarCloud static analysis. - sonar: - name: SonarCloud - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v2 - - name: Setup Java 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: SonarCloud Scan - run: mvn -q clean test coveralls:report -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # Publish the JAR artifacts to GitHub Packages. - publish: - name: Publish - runs-on: ubuntu-latest - needs: [ compile, test, sonar ] - steps: - - name: Checkout Repo - uses: actions/checkout@v1 - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Publish Artifact on GitHub Packages - run: mvn -q clean deploy -DskipTests - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 9cf11a6ba3b4d2d44d928a26fb1646a102819a0c Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 17:57:07 +0100 Subject: [PATCH 09/57] Fix test --- .github/workflows/build.yml | 5 ++--- .../src/test/java/se/kth/depclean/util/MavenInvokerTest.java | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d3043ed7..321dfe26 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,6 @@ on: [push, pull_request] jobs: build: - name: Compile strategy: matrix: os: [ ubuntu-latest, windows-latest ] @@ -22,8 +21,8 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Unit Test - run: mvn clean test + - name: Test + run: mvn clean verify --errors --batch-mode --fail-at-end - name: Generate coverage report run: mvn jacoco:report diff --git a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java index 252d4bc4..512cb4ab 100644 --- a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java +++ b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java @@ -1,6 +1,5 @@ package se.kth.depclean.util; -import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.File; @@ -29,7 +28,9 @@ class MavenInvokerTest { void testRunCommandToGetDependencyTree() throws IOException, InterruptedException { MavenInvoker.runCommand("mvn dependency:tree -DoutputFile=" + producedTree + " -Dverbose=true"); assertTrue(producedTree.exists()); - assertThat(producedTree).hasSameTextualContentAs(expectedTree); + String expectedTreeContent = FileUtils.readFileToString(expectedTree, "UTF-8"); + String producedTreeContent = FileUtils.readFileToString(producedTree, "UTF-8"); + assertTrue(producedTreeContent.equals(expectedTreeContent)); } @AfterAll From e4f79348fe125d1bff8d555e25dceb9843268e8d Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 18:10:39 +0100 Subject: [PATCH 10/57] Remove assertion --- .../test/java/se/kth/depclean/util/MavenInvokerTest.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java index 512cb4ab..c652049a 100644 --- a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java +++ b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java @@ -16,9 +16,6 @@ @Slf4j class MavenInvokerTest { - static final File expectedTree = new File( - "src/test/resources/MavenInvokerResources/basic_spring_maven_project/tree_expected.txt" - ); static final File producedTree = new File( "src/test/resources/MavenInvokerResources/basic_spring_maven_project/tree_produced.txt" ); @@ -28,9 +25,6 @@ class MavenInvokerTest { void testRunCommandToGetDependencyTree() throws IOException, InterruptedException { MavenInvoker.runCommand("mvn dependency:tree -DoutputFile=" + producedTree + " -Dverbose=true"); assertTrue(producedTree.exists()); - String expectedTreeContent = FileUtils.readFileToString(expectedTree, "UTF-8"); - String producedTreeContent = FileUtils.readFileToString(producedTree, "UTF-8"); - assertTrue(producedTreeContent.equals(expectedTreeContent)); } @AfterAll From b27d075422946906166f90ea88b5273fac2b23de Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 18:25:08 +0100 Subject: [PATCH 11/57] Add test report --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 321dfe26..b0642696 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,13 +9,13 @@ jobs: os: [ ubuntu-latest, windows-latest ] runs-on: ${{ matrix.os }} steps: - - name: Checkout Repo + - name: Checkout repo uses: actions/checkout@v2 - name: Setup Java ${{ matrix.java }} uses: actions/setup-java@v1 with: java-version: 11 - - name: Cache the Maven packages to speed up build + - name: Cache the maven packages to speed up build uses: actions/cache@v1 with: path: ~/.m2 @@ -23,6 +23,9 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: Test run: mvn clean verify --errors --batch-mode --fail-at-end + - name: Publish Test Report + if: ${{ always() }} + uses: scacap/action-surefire-report@v1 - name: Generate coverage report run: mvn jacoco:report From f7d231414d1743c4d788be4f5dffe91fd674947b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Soto=20Valero?= Date: Thu, 25 Mar 2021 22:31:27 +0100 Subject: [PATCH 12/57] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0642696..c0a7dda3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: Test - run: mvn clean verify --errors --batch-mode --fail-at-end + run: mvn -X clean verify --errors --batch-mode --fail-at-end - name: Publish Test Report if: ${{ always() }} uses: scacap/action-surefire-report@v1 From 049e753185f4974399024ad90bffcceb858d3c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Soto=20Valero?= Date: Thu, 25 Mar 2021 22:49:28 +0100 Subject: [PATCH 13/57] Ignore test --- .../src/test/java/se/kth/depclean/util/MavenInvokerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java index c652049a..8b9e7553 100644 --- a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java +++ b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java @@ -21,6 +21,7 @@ class MavenInvokerTest { ); @Test + @Ignore @DisplayName("Test that the Maven dependency tree, then the dependency tree is obtained") void testRunCommandToGetDependencyTree() throws IOException, InterruptedException { MavenInvoker.runCommand("mvn dependency:tree -DoutputFile=" + producedTree + " -Dverbose=true"); @@ -33,4 +34,4 @@ public static void tearDown() throws IOException { FileUtils.forceDelete(producedTree); } } -} \ No newline at end of file +} From ca2c410a8f9e6f73fea85da0d9805bca5eac8e98 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 22:53:11 +0100 Subject: [PATCH 14/57] Ignore test --- .github/workflows/build.yml | 2 +- .../src/test/java/se/kth/depclean/util/MavenInvokerTest.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c0a7dda3..b0642696 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: Test - run: mvn -X clean verify --errors --batch-mode --fail-at-end + run: mvn clean verify --errors --batch-mode --fail-at-end - name: Publish Test Report if: ${{ always() }} uses: scacap/action-surefire-report@v1 diff --git a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java index 8b9e7553..0a48102a 100644 --- a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java +++ b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java @@ -6,6 +6,7 @@ import java.io.IOException; import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.FileUtils; +import org.junit.Ignore; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; From 79c1d904ac80a854f0dc3b1494a65a216d94063f Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 22:55:58 +0100 Subject: [PATCH 15/57] Ignore test --- .../src/test/java/se/kth/depclean/util/MavenInvokerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java index 0a48102a..2914f903 100644 --- a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java +++ b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java @@ -15,6 +15,7 @@ * Unit tests for {@link MavenInvoker}. */ @Slf4j +@Ignore class MavenInvokerTest { static final File producedTree = new File( @@ -22,7 +23,6 @@ class MavenInvokerTest { ); @Test - @Ignore @DisplayName("Test that the Maven dependency tree, then the dependency tree is obtained") void testRunCommandToGetDependencyTree() throws IOException, InterruptedException { MavenInvoker.runCommand("mvn dependency:tree -DoutputFile=" + producedTree + " -Dverbose=true"); From d97b636c905217aabf6a970af8e7fce0b526ddce Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 23:07:16 +0100 Subject: [PATCH 16/57] Change test --- .../src/main/java/se/kth/depclean/util/MavenInvoker.java | 2 ++ .../test/java/se/kth/depclean/util/MavenInvokerTest.java | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/depclean-maven-plugin/src/main/java/se/kth/depclean/util/MavenInvoker.java b/depclean-maven-plugin/src/main/java/se/kth/depclean/util/MavenInvoker.java index 6bfe9d54..1f164f9e 100644 --- a/depclean-maven-plugin/src/main/java/se/kth/depclean/util/MavenInvoker.java +++ b/depclean-maven-plugin/src/main/java/se/kth/depclean/util/MavenInvoker.java @@ -46,12 +46,14 @@ public static String[] runCommand(String cmd) throws IOException, InterruptedExc Process process; ArrayList list; if (isUnix(os)) { + System.out.println("Running on Unix"); list = new ArrayList<>(); process = Runtime.getRuntime().exec(cmd); InputStream inputStream = process.getInputStream(); BufferedReader br = new BufferedReader(new InputStreamReader(inputStream)); return outputToConsole(process, list, br); } else if (isWindows(os)) { + System.out.println("Running on Windows"); list = new ArrayList<>(); process = Runtime.getRuntime().exec("cmd /C " + cmd); BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream())); diff --git a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java index 2914f903..a83f3c03 100644 --- a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java +++ b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java @@ -6,7 +6,6 @@ import java.io.IOException; import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.FileUtils; -import org.junit.Ignore; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -15,7 +14,6 @@ * Unit tests for {@link MavenInvoker}. */ @Slf4j -@Ignore class MavenInvokerTest { static final File producedTree = new File( @@ -25,7 +23,11 @@ class MavenInvokerTest { @Test @DisplayName("Test that the Maven dependency tree, then the dependency tree is obtained") void testRunCommandToGetDependencyTree() throws IOException, InterruptedException { - MavenInvoker.runCommand("mvn dependency:tree -DoutputFile=" + producedTree + " -Dverbose=true"); + String[] strings = MavenInvoker.runCommand("mvn dependency:tree -DoutputFile=" + producedTree + " -Dverbose=true"); + for (String string : strings) { + System.out.println(string); + + } assertTrue(producedTree.exists()); } From 1d3d8386f8a56b4a16f97049f175647ef4f13ecc Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 23:25:00 +0100 Subject: [PATCH 17/57] Change maven task --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0642696..dcbf8450 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: Test - run: mvn clean verify --errors --batch-mode --fail-at-end + run: mvn clean install --errors --batch-mode --fail-at-end - name: Publish Test Report if: ${{ always() }} uses: scacap/action-surefire-report@v1 From 7fc9cebf63631246e411af9b4c5e40c7fa9745eb Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 23:44:03 +0100 Subject: [PATCH 18/57] Clean up action --- .github/workflows/build.yml | 8 +++++++- .../java/se/kth/depclean/util/MavenInvoker.java | 2 -- .../java/se/kth/depclean/util/MavenInvokerTest.java | 13 +++++++------ 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dcbf8450..32bd4c2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,12 @@ name: build -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: build: diff --git a/depclean-maven-plugin/src/main/java/se/kth/depclean/util/MavenInvoker.java b/depclean-maven-plugin/src/main/java/se/kth/depclean/util/MavenInvoker.java index 1f164f9e..6bfe9d54 100644 --- a/depclean-maven-plugin/src/main/java/se/kth/depclean/util/MavenInvoker.java +++ b/depclean-maven-plugin/src/main/java/se/kth/depclean/util/MavenInvoker.java @@ -46,14 +46,12 @@ public static String[] runCommand(String cmd) throws IOException, InterruptedExc Process process; ArrayList list; if (isUnix(os)) { - System.out.println("Running on Unix"); list = new ArrayList<>(); process = Runtime.getRuntime().exec(cmd); InputStream inputStream = process.getInputStream(); BufferedReader br = new BufferedReader(new InputStreamReader(inputStream)); return outputToConsole(process, list, br); } else if (isWindows(os)) { - System.out.println("Running on Windows"); list = new ArrayList<>(); process = Runtime.getRuntime().exec("cmd /C " + cmd); BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream())); diff --git a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java index a83f3c03..252d4bc4 100644 --- a/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java +++ b/depclean-maven-plugin/src/test/java/se/kth/depclean/util/MavenInvokerTest.java @@ -1,5 +1,6 @@ package se.kth.depclean.util; +import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.File; @@ -16,6 +17,9 @@ @Slf4j class MavenInvokerTest { + static final File expectedTree = new File( + "src/test/resources/MavenInvokerResources/basic_spring_maven_project/tree_expected.txt" + ); static final File producedTree = new File( "src/test/resources/MavenInvokerResources/basic_spring_maven_project/tree_produced.txt" ); @@ -23,12 +27,9 @@ class MavenInvokerTest { @Test @DisplayName("Test that the Maven dependency tree, then the dependency tree is obtained") void testRunCommandToGetDependencyTree() throws IOException, InterruptedException { - String[] strings = MavenInvoker.runCommand("mvn dependency:tree -DoutputFile=" + producedTree + " -Dverbose=true"); - for (String string : strings) { - System.out.println(string); - - } + MavenInvoker.runCommand("mvn dependency:tree -DoutputFile=" + producedTree + " -Dverbose=true"); assertTrue(producedTree.exists()); + assertThat(producedTree).hasSameTextualContentAs(expectedTree); } @AfterAll @@ -37,4 +38,4 @@ public static void tearDown() throws IOException { FileUtils.forceDelete(producedTree); } } -} +} \ No newline at end of file From f45b8aea99c52fcbbe14676c3d161849bb8dd6f7 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Thu, 25 Mar 2021 23:57:32 +0100 Subject: [PATCH 19/57] Add SonarCloud and Coveralls --- .github/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 32bd4c2c..80c98814 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,12 +28,20 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: Test - run: mvn clean install --errors --batch-mode --fail-at-end - - name: Publish Test Report + run: mvn clean install --errors --batch-mode --fail-at-end + - name: Publish test report if: ${{ always() }} uses: scacap/action-surefire-report@v1 - name: Generate coverage report run: mvn jacoco:report + - name: Coveralls + uses: coverallsapp/github-action@v1.1.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: SonarCloud + run: mvn clean test coveralls:report -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} --errors --batch-mode + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # # Runs unit tests (via surefire-maven-plugin) and integration tests (via failsafe-maven-plugin). # test: From e77b7582e1b130eed20f7f6d7bb01b4aa9dd6a59 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 00:27:43 +0100 Subject: [PATCH 20/57] try Codecov --- .github/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80c98814..86c014eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,10 +34,12 @@ jobs: uses: scacap/action-surefire-report@v1 - name: Generate coverage report run: mvn jacoco:report - - name: Coveralls - uses: coverallsapp/github-action@v1.1.2 + - name: Codecov + uses: codecov/codecov-action@v1 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.CODECOV_TOKEN }} + file: ./depclean-core/target/site/jacoco/jacoco.xml,./depclean-maven-plugin/target/site/jacoco/jacoco.xml + flags: unittests - name: SonarCloud run: mvn clean test coveralls:report -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} --errors --batch-mode env: From 583a9935bc90176fd2942c78df4fd6d9794e7609 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 00:38:58 +0100 Subject: [PATCH 21/57] Fix codecov --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86c014eb..6eb470bf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,12 +38,12 @@ jobs: uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} - file: ./depclean-core/target/site/jacoco/jacoco.xml,./depclean-maven-plugin/target/site/jacoco/jacoco.xml flags: unittests - name: SonarCloud - run: mvn clean test coveralls:report -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} --errors --batch-mode + uses: sonarsource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # # Runs unit tests (via surefire-maven-plugin) and integration tests (via failsafe-maven-plugin). # test: From f700c9028f309cfafe75c2171267f1719b33c827 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 00:46:01 +0100 Subject: [PATCH 22/57] Fix sonarcloud --- .github/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6eb470bf..ae88ddef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,10 +39,18 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} flags: unittests - - name: SonarCloud - uses: sonarsource/sonarcloud-github-action@master + - name: Cache SonarCloud packages + uses: actions/cache@v1 + with: + path: ~/.sonar/cache + key: ${{ runner.os }}-sonar + restore-keys: ${{ runner.os }}-sonar + - name: Build and analyze + run: mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar env: + # Needed to get some information about the pull request, if any GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # SonarCloud access token should be generated from https://sonarcloud.io/account/security/ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # # Runs unit tests (via surefire-maven-plugin) and integration tests (via failsafe-maven-plugin). From e509d79bc4371b9276051f20c8b6e1b2925073db Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 00:54:28 +0100 Subject: [PATCH 23/57] Fix sonarcloud --- .github/workflows/build.yml | 5 ++++- pom.xml | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae88ddef..e8e8a342 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,9 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@v2 + with: + # Shallow clones should be disabled for a better relevancy of analysis + fetch-depth: 0 - name: Setup Java ${{ matrix.java }} uses: actions/setup-java@v1 with: @@ -46,7 +49,7 @@ jobs: key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: Build and analyze - run: mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar + uses: sonarsource/sonarcloud-github-action@master env: # Needed to get some information about the pull request, if any GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index 7a9c72a5..aa974b10 100644 --- a/pom.xml +++ b/pom.xml @@ -155,6 +155,13 @@ false + + + org.sonarsource.scanner.maven + sonar-maven-plugin + + 3.7.0.1746 + From 60e1d54aac580ffa6faa22798f5a484370ccdbe3 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 01:01:11 +0100 Subject: [PATCH 24/57] Fix sonarcloud --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8e8a342..224a844f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,7 +49,7 @@ jobs: key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: Build and analyze - uses: sonarsource/sonarcloud-github-action@master + run: mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar env: # Needed to get some information about the pull request, if any GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 8bae09216b84c9e82526eeb4079c2bdd20aae85c Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 01:07:23 +0100 Subject: [PATCH 25/57] Fix sonarcloud --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 224a844f..0b357705 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,7 +49,7 @@ jobs: key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: Build and analyze - run: mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar + run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean env: # Needed to get some information about the pull request, if any GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 64ab99f82606079803ef5a347880487daaa1c66d Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 01:16:40 +0100 Subject: [PATCH 26/57] Fix sonarcloud --- .github/workflows/build.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b357705..aa9eabb6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,11 +49,9 @@ jobs: key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: Build and analyze - run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean + run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} env: - # Needed to get some information about the pull request, if any GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # SonarCloud access token should be generated from https://sonarcloud.io/account/security/ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # # Runs unit tests (via surefire-maven-plugin) and integration tests (via failsafe-maven-plugin). From 2016ec58fa358a38ff0a4662add364a0e28b8d4e Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 01:25:18 +0100 Subject: [PATCH 27/57] Fix sonarcloud --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa9eabb6..f0460de8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,7 @@ jobs: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - - name: Build and analyze + - name: SonarCloud run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 94bb8af59d4be6f373b805a8d9f62bdf39d4f0c1 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 01:31:35 +0100 Subject: [PATCH 28/57] Fix sonarcloud --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f0460de8..be47bc1d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,7 +49,7 @@ jobs: key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: SonarCloud - run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} + run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.java.source=11 -Dsonar.java.target=11 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 349b7f2a7b0e93f219e41163882bf4663dcc918b Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 12:38:20 +0100 Subject: [PATCH 29/57] Cleanup --- .github/workflows/build.yml | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be47bc1d..78888682 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,42 +13,52 @@ jobs: strategy: matrix: os: [ ubuntu-latest, windows-latest ] + java: [ 8, 11, 15 ] runs-on: ${{ matrix.os }} steps: - - name: Checkout repo + - name: "Checkout Repo" uses: actions/checkout@v2 with: - # Shallow clones should be disabled for a better relevancy of analysis fetch-depth: 0 - - name: Setup Java ${{ matrix.java }} + - name: "${{ runner.os }} with Java ${{ matrix.java }}" uses: actions/setup-java@v1 with: - java-version: 11 - - name: Cache the maven packages to speed up build + java-version: ${{ matrix.java }} + - name: "Cache Local Maven Repository" uses: actions/cache@v1 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Test - run: mvn clean install --errors --batch-mode --fail-at-end - - name: Publish test report + - name: "CheckStyle" + if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' + run: mvn validate --errors + - name: "Compile" + run: mvn clean install -DskipTests -Dcheckstyle.skip --errors + - name: "Unit Tests" + run: mvn surefire:test --errors --fail-at-end + - name: "Integration Tests" + run: mvn failsafe:integration-test --errors --fail-at-end + - name: "Publish Test Report" if: ${{ always() }} uses: scacap/action-surefire-report@v1 - - name: Generate coverage report + - name: "Generate Coverage Report" run: mvn jacoco:report - - name: Codecov + - name: "CodeCov" + if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} flags: unittests - - name: Cache SonarCloud packages + - name: "Cache SonarCloud" + if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: actions/cache@v1 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - - name: SonarCloud + - name: "SonarCloud" + if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.java.source=11 -Dsonar.java.target=11 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From d31c98a372d0fc3d973bc918c9798513ad3f3c13 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 12:46:00 +0100 Subject: [PATCH 30/57] Set up just java 11 --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 78888682..762cee31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest, windows-latest ] - java: [ 8, 11, 15 ] + java: [ 11 ] runs-on: ${{ matrix.os }} steps: - name: "Checkout Repo" @@ -40,9 +40,10 @@ jobs: - name: "Integration Tests" run: mvn failsafe:integration-test --errors --fail-at-end - name: "Publish Test Report" - if: ${{ always() }} + if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 - name: "Generate Coverage Report" + if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' run: mvn jacoco:report - name: "CodeCov" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' From c9c9aecc2c502eb91c2ceaa64f2b4c6a6ac2d6b7 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 12:49:24 +0100 Subject: [PATCH 31/57] Hotfix --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 762cee31..32d4c745 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,11 +16,11 @@ jobs: java: [ 11 ] runs-on: ${{ matrix.os }} steps: - - name: "Checkout Repo" + - name: "Checkout" uses: actions/checkout@v2 with: fetch-depth: 0 - - name: "${{ runner.os }} with Java ${{ matrix.java }}" + - name: "$Test {{ runner.os }} with Java ${{ matrix.java }}" uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} From 655c08608f92ed632cb78f4d597feeac8072f770 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 13:37:57 +0100 Subject: [PATCH 32/57] Hotfix --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 32d4c745..30ec4dec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: "$Test {{ runner.os }} with Java ${{ matrix.java }}" + - name: "$Test {{ matrix.os }} with Java ${{ matrix.java }}" uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} @@ -38,7 +38,7 @@ jobs: - name: "Unit Tests" run: mvn surefire:test --errors --fail-at-end - name: "Integration Tests" - run: mvn failsafe:integration-test --errors --fail-at-end + run: mvn -X failsafe:integration-test --errors --fail-at-end - name: "Publish Test Report" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 From fdd41395d3e76216e4c245400e479e1577b9f77c Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 13:44:02 +0100 Subject: [PATCH 33/57] Hotfix --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30ec4dec..26b6858d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: "$Test {{ matrix.os }} with Java ${{ matrix.java }}" + - name: "Setup {{ runner.os }} with Java ${{ matrix.java }}" uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} @@ -33,7 +33,7 @@ jobs: - name: "CheckStyle" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' run: mvn validate --errors - - name: "Compile" + - name: "Install" run: mvn clean install -DskipTests -Dcheckstyle.skip --errors - name: "Unit Tests" run: mvn surefire:test --errors --fail-at-end From c3b639d6e252e1b626be5507c39a54ef37be93ae Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 13:48:44 +0100 Subject: [PATCH 34/57] Hotfix --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 26b6858d..7c2aa5c4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: "Setup {{ runner.os }} with Java ${{ matrix.java }}" + - name: Setup {{ runner.os }} with Java ${{ matrix.java }} uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} @@ -38,7 +38,7 @@ jobs: - name: "Unit Tests" run: mvn surefire:test --errors --fail-at-end - name: "Integration Tests" - run: mvn -X failsafe:integration-test --errors --fail-at-end + run: mvn failsafe:integration-test --errors --fail-at-end - name: "Publish Test Report" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 From 56cdf648da937c06617a456aaa9e4dfe38c0107f Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 13:52:21 +0100 Subject: [PATCH 35/57] simplify --- .github/workflows/build.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c2aa5c4..e34a2baa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,16 +35,11 @@ jobs: run: mvn validate --errors - name: "Install" run: mvn clean install -DskipTests -Dcheckstyle.skip --errors - - name: "Unit Tests" - run: mvn surefire:test --errors --fail-at-end - - name: "Integration Tests" - run: mvn failsafe:integration-test --errors --fail-at-end + - name: "Tests" + run: mvn verify --Dcheckstyle.skip -errors --fail-at-end - name: "Publish Test Report" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 - - name: "Generate Coverage Report" - if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' - run: mvn jacoco:report - name: "CodeCov" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: codecov/codecov-action@v1 From fad9018e80274e5a87858d571292fe557d3a92c9 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 13:53:43 +0100 Subject: [PATCH 36/57] simplify --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e34a2baa..0ef00a31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,7 @@ jobs: - name: "Install" run: mvn clean install -DskipTests -Dcheckstyle.skip --errors - name: "Tests" - run: mvn verify --Dcheckstyle.skip -errors --fail-at-end + run: mvn verify -Dcheckstyle.skip -errors --fail-at-end - name: "Publish Test Report" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 From d43c12117e1ed5d8220a0982cc682028685b8998 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 14:01:36 +0100 Subject: [PATCH 37/57] hotfix --- .github/workflows/build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ef00a31..f5ba0113 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,12 +15,13 @@ jobs: os: [ ubuntu-latest, windows-latest ] java: [ 11 ] runs-on: ${{ matrix.os }} + name: ${{ matrix.os }} with ${{ matrix.java }} steps: - name: "Checkout" uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Setup {{ runner.os }} with Java ${{ matrix.java }} + - name: {{ matrix.os }} with Java ${{ matrix.java }} uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} @@ -46,6 +47,12 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} flags: unittests + - name: "SonarCloud" + if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' + run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.java.source=11 -Dsonar.java.target=11 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: "Cache SonarCloud" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: actions/cache@v1 @@ -53,12 +60,6 @@ jobs: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - - name: "SonarCloud" - if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' - run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.java.source=11 -Dsonar.java.target=11 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # # Runs unit tests (via surefire-maven-plugin) and integration tests (via failsafe-maven-plugin). # test: From de44e8a127edb8ec93c595f3d33a8eabf82e70e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Soto=20Valero?= Date: Fri, 26 Mar 2021 14:06:41 +0100 Subject: [PATCH 38/57] Update build.yml --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5ba0113..47a6a36a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,6 @@ jobs: os: [ ubuntu-latest, windows-latest ] java: [ 11 ] runs-on: ${{ matrix.os }} - name: ${{ matrix.os }} with ${{ matrix.java }} steps: - name: "Checkout" uses: actions/checkout@v2 From 4acbe7bd72ad906e26a33a218e3b8b2d5c2483b9 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 14:08:40 +0100 Subject: [PATCH 39/57] hotfix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 47a6a36a..f881c953 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: {{ matrix.os }} with Java ${{ matrix.java }} + - name: {{ runner.os }} with Java ${{ matrix.java }} uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} From 4b356a3f2b4e0170785b266c7d2b278f21eea8a1 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 14:09:50 +0100 Subject: [PATCH 40/57] hotfix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f881c953..3e551b19 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: {{ runner.os }} with Java ${{ matrix.java }} + - name: Java ${{ matrix.java }} uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} From 0963a0c1a1dd9030930f1c3f380222f0cb713b53 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 14:18:07 +0100 Subject: [PATCH 41/57] hotfix --- .github/workflows/build.yml | 79 ++++--------------------------------- 1 file changed, 7 insertions(+), 72 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e551b19..566ac39e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,12 +31,15 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: "CheckStyle" - if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' run: mvn validate --errors - - name: "Install" + - name: "Compile and Install" run: mvn clean install -DskipTests -Dcheckstyle.skip --errors - - name: "Tests" - run: mvn verify -Dcheckstyle.skip -errors --fail-at-end + - name: "Unit Tests" + run: mvn surefire:test --errors --fail-at-end + - name: "Integration Tests" + run: mvn failsafe:integration-test --errors --fail-at-end + - name: "JaCoCo" + run: mvn jacoco:report --errors --fail-at-end - name: "Publish Test Report" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 @@ -59,71 +62,3 @@ jobs: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - -# # Runs unit tests (via surefire-maven-plugin) and integration tests (via failsafe-maven-plugin). -# test: -# name: Test -# runs-on: ubuntu-latest -# steps: -# - name: Checkout Repo -# uses: actions/checkout@v2 -# - name: Setup Java 11 -# uses: actions/setup-java@v1 -# with: -# java-version: 11 -# - name: Run Tests -# run: mvn clean verify --errors --batch-mode --fail-at-end -# - name: Publish Test Report -# if: ${{ always() }} -# uses: scacap/action-surefire-report@v1 -# -# # Collect JaCoCo test coverage and report to Coveralls -# coveralls: -# name: Coveralls -# runs-on: ubuntu-latest -# steps: -# - name: Checkout Repo -# uses: actions/checkout@v2 -# - name: Setup Java 11 -# uses: actions/setup-java@v1 -# with: -# java-version: 11 -# - name: Run Tests -# run: mvn clean test jacoco:report --errors --batch-mode -# - name: Report to Coveralls -# uses: coverallsapp/github-action@v1.1.2 -# with: -# github-token: ${{ secrets.GITHUB_TOKEN }} -# -# # Run SonarCloud static analysis. -# sonar: -# name: SonarCloud -# runs-on: ubuntu-latest -# steps: -# - name: Checkout Repo -# uses: actions/checkout@v2 -# - name: Setup Java 11 -# uses: actions/setup-java@v1 -# with: -# java-version: 11 -# - name: SonarCloud Scan -# run: mvn clean test coveralls:report -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} --errors --batch-mode -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# -# # Publish the JAR artifacts to GitHub Packages. -# publish: -# name: Publish -# runs-on: ubuntu-latest -# needs: [ compile, test, sonar ] -# steps: -# - name: Checkout Repo -# uses: actions/checkout@v1 -# - name: Set up JDK 11 -# uses: actions/setup-java@v1 -# with: -# java-version: 11 -# - name: Publish Artifact on GitHub Packages -# run: mvn clean deploy -DskipTests --errors --batch-mode -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 266deba27539957585d96fecb2de060bb82dc0ad Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 14:20:51 +0100 Subject: [PATCH 42/57] hotfix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 566ac39e..fbe9af6c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,7 +39,7 @@ jobs: - name: "Integration Tests" run: mvn failsafe:integration-test --errors --fail-at-end - name: "JaCoCo" - run: mvn jacoco:report --errors --fail-at-end + run: mvn jacoco:report - name: "Publish Test Report" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 From 53d768e4d535d50c6dbd44d2b93a7f8d1b6a31e3 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 14:30:43 +0100 Subject: [PATCH 43/57] hotfix --- .github/workflows/build.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbe9af6c..db6a4853 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,12 +34,8 @@ jobs: run: mvn validate --errors - name: "Compile and Install" run: mvn clean install -DskipTests -Dcheckstyle.skip --errors - - name: "Unit Tests" - run: mvn surefire:test --errors --fail-at-end - - name: "Integration Tests" - run: mvn failsafe:integration-test --errors --fail-at-end - - name: "JaCoCo" - run: mvn jacoco:report + - name: "Tests" + run: mvn test --errors --fail-at-end - name: "Publish Test Report" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 From 639248698f795ced592ab0ad2ee96931000606e5 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 14:33:37 +0100 Subject: [PATCH 44/57] hotfix --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db6a4853..11d591df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,8 +34,10 @@ jobs: run: mvn validate --errors - name: "Compile and Install" run: mvn clean install -DskipTests -Dcheckstyle.skip --errors - - name: "Tests" - run: mvn test --errors --fail-at-end + - name: "Unit Tests" + run: mvn test -Dcheckstyle.skip --errors --fail-at-end + - name: "Integration Tests" + run: mvn failsafe:integration-test --errors --fail-at-end - name: "Publish Test Report" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 From 71a0470e7d81cb999ff1216e8eb3a7dbb965c2df Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 14:37:15 +0100 Subject: [PATCH 45/57] hotfix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11d591df..9c9fea80 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,7 +37,7 @@ jobs: - name: "Unit Tests" run: mvn test -Dcheckstyle.skip --errors --fail-at-end - name: "Integration Tests" - run: mvn failsafe:integration-test --errors --fail-at-end + run: mvn failsafe:integration-test - name: "Publish Test Report" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 From 14d32828625652cca954bf2fb64736d1964f3ca8 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 14:44:13 +0100 Subject: [PATCH 46/57] hotfix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c9fea80..11d591df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,7 +37,7 @@ jobs: - name: "Unit Tests" run: mvn test -Dcheckstyle.skip --errors --fail-at-end - name: "Integration Tests" - run: mvn failsafe:integration-test + run: mvn failsafe:integration-test --errors --fail-at-end - name: "Publish Test Report" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 From 4720872cb457faf1fb344e3099379b656d8879e4 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 16:41:00 +0100 Subject: [PATCH 47/57] hotfix --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11d591df..fb9e6f67 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,12 +47,6 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} flags: unittests - - name: "SonarCloud" - if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' - run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.java.source=11 -Dsonar.java.target=11 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: "Cache SonarCloud" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: actions/cache@v1 @@ -60,3 +54,9 @@ jobs: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar + - name: "SonarCloud" + if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' + run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.java.source=11 -Dsonar.java.target=11 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 69f02a857ca57d29c6b818f870523b6a5f2e8bea Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 16:49:30 +0100 Subject: [PATCH 48/57] hotfix --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb9e6f67..5dd194e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,6 +38,7 @@ jobs: run: mvn test -Dcheckstyle.skip --errors --fail-at-end - name: "Integration Tests" run: mvn failsafe:integration-test --errors --fail-at-end + # The following is only executed on Ubuntu on Java 11 - name: "Publish Test Report" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: scacap/action-surefire-report@v1 From 387931d2b01b988733f92142fba0193fd0ae4e7b Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 16:51:59 +0100 Subject: [PATCH 49/57] hotfix --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5dd194e4..86b537a3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,13 +48,13 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} flags: unittests - - name: "Cache SonarCloud" - if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' - uses: actions/cache@v1 - with: - path: ~/.sonar/cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar +# - name: "Cache SonarCloud" +# if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' +# uses: actions/cache@v1 +# with: +# path: ~/.sonar/cache +# key: ${{ runner.os }}-sonar +# restore-keys: ${{ runner.os }}-sonar - name: "SonarCloud" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.java.source=11 -Dsonar.java.target=11 From 5989102aa1eff0280abbbad6ebaa513cbc12446e Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 18:15:58 +0100 Subject: [PATCH 50/57] hotfix --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86b537a3..5dd194e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,13 +48,13 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} flags: unittests -# - name: "Cache SonarCloud" -# if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' -# uses: actions/cache@v1 -# with: -# path: ~/.sonar/cache -# key: ${{ runner.os }}-sonar -# restore-keys: ${{ runner.os }}-sonar + - name: "Cache SonarCloud" + if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' + uses: actions/cache@v1 + with: + path: ~/.sonar/cache + key: ${{ runner.os }}-sonar + restore-keys: ${{ runner.os }}-sonar - name: "SonarCloud" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.java.source=11 -Dsonar.java.target=11 From 7a475b3c7d6ad016d9609f9a69cf53cfa66a5d10 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 18:28:19 +0100 Subject: [PATCH 51/57] set max parallel --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5dd194e4..bd7227ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,7 @@ on: jobs: build: strategy: + max-parallel: 4 matrix: os: [ ubuntu-latest, windows-latest ] java: [ 11 ] From c5305bcb93c214d9694ec3220ed0813f4e106961 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 18:30:41 +0100 Subject: [PATCH 52/57] set max parallel --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd7227ed..811435a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ on: jobs: build: strategy: - max-parallel: 4 + max-parallel: 1 matrix: os: [ ubuntu-latest, windows-latest ] java: [ 11 ] From 67c284389e47bdad27030290ffba2c18ab563415 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 18:40:59 +0100 Subject: [PATCH 53/57] fix checkstyle --- .github/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 811435a5..c20f45f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,10 +31,8 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: "CheckStyle" - run: mvn validate --errors - - name: "Compile and Install" - run: mvn clean install -DskipTests -Dcheckstyle.skip --errors + - name: "Compile and Install and CheckStyle" + run: mvn clean install -DskipTests --errors - name: "Unit Tests" run: mvn test -Dcheckstyle.skip --errors --fail-at-end - name: "Integration Tests" From 5dbf3661f8a4ef47d46215adad257a63383c493a Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 18:54:52 +0100 Subject: [PATCH 54/57] fix checkstyle --- .github/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c20f45f7..73276ee0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,10 +31,12 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: "Compile and Install and CheckStyle" - run: mvn clean install -DskipTests --errors + - name: "CheckStyle" + run: mvn validate --errors + - name: "Compile and Install" + run: mvn clean install -DskipTests -Dcheckstyle.skip=true --errors - name: "Unit Tests" - run: mvn test -Dcheckstyle.skip --errors --fail-at-end + run: mvn test -Dcheckstyle.skip=true --errors --fail-at-end - name: "Integration Tests" run: mvn failsafe:integration-test --errors --fail-at-end # The following is only executed on Ubuntu on Java 11 From 49f4f87cc659a6ecc1ddbd6baf1f787804d6c2b3 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 19:08:21 +0100 Subject: [PATCH 55/57] fix checkstyle --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 73276ee0..9046e1e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,9 +34,9 @@ jobs: - name: "CheckStyle" run: mvn validate --errors - name: "Compile and Install" - run: mvn clean install -DskipTests -Dcheckstyle.skip=true --errors + run: mvn clean install -DskipTests --errors - name: "Unit Tests" - run: mvn test -Dcheckstyle.skip=true --errors --fail-at-end + run: mvn test --errors --fail-at-end - name: "Integration Tests" run: mvn failsafe:integration-test --errors --fail-at-end # The following is only executed on Ubuntu on Java 11 From 3f623cde8fd4df9440f37c2be45f9c97e5c59b49 Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 22:04:06 +0100 Subject: [PATCH 56/57] Disable travis --- .github/workflows/build.yml | 5 +-- .travis.yml | 74 ++++++++++++++++++------------------- 2 files changed, 38 insertions(+), 41 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9046e1e6..8684bed7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,13 +36,10 @@ jobs: - name: "Compile and Install" run: mvn clean install -DskipTests --errors - name: "Unit Tests" - run: mvn test --errors --fail-at-end + uses: scacap/action-surefire-report@v1 - name: "Integration Tests" run: mvn failsafe:integration-test --errors --fail-at-end # The following is only executed on Ubuntu on Java 11 - - name: "Publish Test Report" - if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' - uses: scacap/action-surefire-report@v1 - name: "CodeCov" if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean' uses: codecov/codecov-action@v1 diff --git a/.travis.yml b/.travis.yml index 3356714e..23dd5863 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,37 +1,37 @@ -language: java - -sudo: true - -os: linux - -dist: trusty - -jdk: openjdk11 - -env: - global: - - M2_HOME="/usr/local/maven" - matrix: - - SCRIPT=depclean-maven-plugin.sh - -before_cache: rm -rf $HOME/.m2/se/kth/ - -cache: - directories: - - $HOME/.m2 - -before_install: - - java -version - -install: true - -addons: - sonarcloud: - organization: "castor-software" - token: - secure: "RiCyn2GH1FqdhmHhuGfI6zSa8j4fekkp4MDsOwk16Hie4bDDwO0rDYF9GHx8RwpmuXN3C38yfqbWAbNnRkdbV7URUG18YSytMg1diM+WRawGaTmxS87zqEXaCN2PHu2rhmPSAsL7QZyf3+YFH6h2UCTzcIOf/HswALx2UOl2jpQVpe9A+mJhruBK2FLTmh7gfNAWdi8mrjLw6mUzS73SKV6T1Ell1pVUZrd8o3CAuQkFJTjy002rgicsL+I7aHT8XGASmW9yGr2hsReZCNhDKlqBfnADQmV5LO+mrT3XU3ivKQu36KosIomaDyikZqPFzzX1wa1KVXlds+oDaTesSRqdOVCB/BGbmV9bKnzGrHZZSi5kt91JDAqIoxUzvC8u5EEAvgVjLItsJflBUBlW6fIBYbjdec90bGaRU+A31iH5bDirWAeC5Z7JfvCpMr7W0pDqv6YJ7NKmpKXuZghDgQBmxPjp7tvEEB0YXXPUxoock9+SDB7E+6+JoEG3P0qU6Z6QZRwRqvRDXRlBXpz+cvhc04g+WrM9Ws15F6gzh2q2jAkGtGPtXjYX+rak2+gmjqXr16MMqd4eaJcW5X2rLBglk57+jhDGBdp3x1kC7kXraAKhhFNVCaLpwFS3pvzhxUxmGhKnLlU20qFA8BXtmwfyVEqMJxLxB5AHz3bitbc=" - -script: ./.travis/$SCRIPT - -after_success: - - mvn clean test jacoco:report coveralls:report +#language: java +# +#sudo: true +# +#os: linux +# +#dist: trusty +# +#jdk: openjdk11 +# +#env: +# global: +# - M2_HOME="/usr/local/maven" +# matrix: +# - SCRIPT=depclean-maven-plugin.sh +# +#before_cache: rm -rf $HOME/.m2/se/kth/ +# +#cache: +# directories: +# - $HOME/.m2 +# +#before_install: +# - java -version +# +#install: true +# +#addons: +# sonarcloud: +# organization: "castor-software" +# token: +# secure: "RiCyn2GH1FqdhmHhuGfI6zSa8j4fekkp4MDsOwk16Hie4bDDwO0rDYF9GHx8RwpmuXN3C38yfqbWAbNnRkdbV7URUG18YSytMg1diM+WRawGaTmxS87zqEXaCN2PHu2rhmPSAsL7QZyf3+YFH6h2UCTzcIOf/HswALx2UOl2jpQVpe9A+mJhruBK2FLTmh7gfNAWdi8mrjLw6mUzS73SKV6T1Ell1pVUZrd8o3CAuQkFJTjy002rgicsL+I7aHT8XGASmW9yGr2hsReZCNhDKlqBfnADQmV5LO+mrT3XU3ivKQu36KosIomaDyikZqPFzzX1wa1KVXlds+oDaTesSRqdOVCB/BGbmV9bKnzGrHZZSi5kt91JDAqIoxUzvC8u5EEAvgVjLItsJflBUBlW6fIBYbjdec90bGaRU+A31iH5bDirWAeC5Z7JfvCpMr7W0pDqv6YJ7NKmpKXuZghDgQBmxPjp7tvEEB0YXXPUxoock9+SDB7E+6+JoEG3P0qU6Z6QZRwRqvRDXRlBXpz+cvhc04g+WrM9Ws15F6gzh2q2jAkGtGPtXjYX+rak2+gmjqXr16MMqd4eaJcW5X2rLBglk57+jhDGBdp3x1kC7kXraAKhhFNVCaLpwFS3pvzhxUxmGhKnLlU20qFA8BXtmwfyVEqMJxLxB5AHz3bitbc=" +# +#script: ./.travis/$SCRIPT +# +#after_success: +# - mvn clean test jacoco:report coveralls:report From ef7673e87bc7ae27d91c8408cf0481c078adb6fa Mon Sep 17 00:00:00 2001 From: cesarsotovalero Date: Fri, 26 Mar 2021 22:12:18 +0100 Subject: [PATCH 57/57] Remove travis references --- .github/workflows/build.yml | 2 +- .travis.yml | 37 -------------------------------- .travis/depclean-maven-plugin.sh | 5 ----- README.md | 4 ++-- 4 files changed, 3 insertions(+), 45 deletions(-) delete mode 100644 .travis.yml delete mode 100755 .travis/depclean-maven-plugin.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8684bed7..7d07798b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,7 @@ jobs: - name: "Compile and Install" run: mvn clean install -DskipTests --errors - name: "Unit Tests" - uses: scacap/action-surefire-report@v1 + run: mvn test --errors --fail-at-end - name: "Integration Tests" run: mvn failsafe:integration-test --errors --fail-at-end # The following is only executed on Ubuntu on Java 11 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 23dd5863..00000000 --- a/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -#language: java -# -#sudo: true -# -#os: linux -# -#dist: trusty -# -#jdk: openjdk11 -# -#env: -# global: -# - M2_HOME="/usr/local/maven" -# matrix: -# - SCRIPT=depclean-maven-plugin.sh -# -#before_cache: rm -rf $HOME/.m2/se/kth/ -# -#cache: -# directories: -# - $HOME/.m2 -# -#before_install: -# - java -version -# -#install: true -# -#addons: -# sonarcloud: -# organization: "castor-software" -# token: -# secure: "RiCyn2GH1FqdhmHhuGfI6zSa8j4fekkp4MDsOwk16Hie4bDDwO0rDYF9GHx8RwpmuXN3C38yfqbWAbNnRkdbV7URUG18YSytMg1diM+WRawGaTmxS87zqEXaCN2PHu2rhmPSAsL7QZyf3+YFH6h2UCTzcIOf/HswALx2UOl2jpQVpe9A+mJhruBK2FLTmh7gfNAWdi8mrjLw6mUzS73SKV6T1Ell1pVUZrd8o3CAuQkFJTjy002rgicsL+I7aHT8XGASmW9yGr2hsReZCNhDKlqBfnADQmV5LO+mrT3XU3ivKQu36KosIomaDyikZqPFzzX1wa1KVXlds+oDaTesSRqdOVCB/BGbmV9bKnzGrHZZSi5kt91JDAqIoxUzvC8u5EEAvgVjLItsJflBUBlW6fIBYbjdec90bGaRU+A31iH5bDirWAeC5Z7JfvCpMr7W0pDqv6YJ7NKmpKXuZghDgQBmxPjp7tvEEB0YXXPUxoock9+SDB7E+6+JoEG3P0qU6Z6QZRwRqvRDXRlBXpz+cvhc04g+WrM9Ws15F6gzh2q2jAkGtGPtXjYX+rak2+gmjqXr16MMqd4eaJcW5X2rLBglk57+jhDGBdp3x1kC7kXraAKhhFNVCaLpwFS3pvzhxUxmGhKnLlU20qFA8BXtmwfyVEqMJxLxB5AHz3bitbc=" -# -#script: ./.travis/$SCRIPT -# -#after_success: -# - mvn clean test jacoco:report coveralls:report diff --git a/.travis/depclean-maven-plugin.sh b/.travis/depclean-maven-plugin.sh deleted file mode 100755 index 6123f84a..00000000 --- a/.travis/depclean-maven-plugin.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -mvn clean install -Ptravis -mvn jacoco:report coveralls:report --fail-never -mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=castor-software_depclean diff --git a/README.md b/README.md index 1052afad..40f972d6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # DepClean DepClean logo -[![Build Status](https://travis-ci.org/castor-software/depclean.svg?branch=master)](https://travis-ci.org/castor-software/depclean) +[![build](https://github.com/castor-software/depclean/actions/workflows/build.yml/badge.svg)](https://github.com/castor-software/depclean/actions/workflows/build.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=alert_status)](https://sonarcloud.io/dashboard?id=castor-software_depclean) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=castor-software_depclean) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=castor-software_depclean) @@ -13,7 +13,7 @@ [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=ncloc)](https://sonarcloud.io/dashboard?id=castor-software_depclean) [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=castor-software_depclean) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=sqale_index)](https://sonarcloud.io/dashboard?id=castor-software_depclean) -[![Coverage Status](https://coveralls.io/repos/github/castor-software/depclean/badge.svg?branch=master)](https://coveralls.io/github/castor-software/depclean?branch=master) +[![codecov](https://codecov.io/gh/castor-software/depclean/branch/master/graph/badge.svg?token=X0XE6R72OD)](https://codecov.io/gh/castor-software/depclean) ## What is DepClean?