From b3dcf3a05940e597c8943eb6619529502a9cb2f5 Mon Sep 17 00:00:00 2001 From: carlspring Date: Fri, 21 Aug 2020 22:17:15 +0100 Subject: [PATCH 1/5] Issue 19: Set up Sonarcloud analysis #19 --- .github/workflows/build.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e37d5370..cb774b93 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,10 @@ jobs: runs-on: ${{ matrix.operating-system }} strategy: matrix: - operating-system: [ubuntu-latest, windows-latest] + # Commenting Windows out in order to preserve our free minutes. + # We can re-enable it, if we get a sponsor. + #operating-system: [ubuntu-latest, windows-latest] + operating-system: [ubuntu-latest] java: [ 8, 11.0.3 ] steps: - name: Checkout @@ -28,3 +31,22 @@ jobs: java-version: ${{ matrix.java }} - name: Build with Maven run: mvn clean install -Pintegration-tests + + sonarqube: + runs-on: ubuntu-latest + strategy: + matrix: + # Commenting Windows out in order to preserve our free minutes. + # We can re-enable it, if we get a sponsor. + #operating-system: [ubuntu-latest, windows-latest] + operating-system: [ubuntu-latest] + java: 8 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Java ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Analyze code and publish results to Sonarcloud + run: mvn verify sonar:sonar From a29eda0ad746ed3f245e5aec4bafde052e772131 Mon Sep 17 00:00:00 2001 From: carlspring Date: Fri, 21 Aug 2020 22:19:19 +0100 Subject: [PATCH 2/5] Issue 19: Set up Sonarcloud analysis #19 JDK version fixes. --- .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 cb774b93..3832efb6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: # We can re-enable it, if we get a sponsor. #operating-system: [ubuntu-latest, windows-latest] operating-system: [ubuntu-latest] - java: 8 + java: [ 8 ] steps: - name: Checkout uses: actions/checkout@v2 From 5e23e9ab87ca1acfc654a8e691abe875ac1a2e67 Mon Sep 17 00:00:00 2001 From: carlspring Date: Fri, 21 Aug 2020 22:22:20 +0100 Subject: [PATCH 3/5] Issue 19: Set up Sonarcloud analysis #19 Added Sonarcloud properties. --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index caf15277..7536dee8 100644 --- a/pom.xml +++ b/pom.xml @@ -71,6 +71,13 @@ UTF-8 + + + carlspring_s3fs-nio2 + carlspring + https://sonarcloud.io + + 2.7.1 1.7.5 1.11.232 From f09407404f74ba53929ae7b3100bcd44fb7c1ab9 Mon Sep 17 00:00:00 2001 From: carlspring Date: Fri, 21 Aug 2020 22:35:56 +0100 Subject: [PATCH 4/5] Issue 19: Set up Sonarcloud analysis #19 Sonarcloud fixes. --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3832efb6..94225f4c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,4 +49,7 @@ jobs: with: java-version: ${{ matrix.java }} - name: Analyze code and publish results to Sonarcloud + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: mvn verify sonar:sonar From 91a1b716d71955e16ff7cf2a300df0c763c96c01 Mon Sep 17 00:00:00 2001 From: carlspring Date: Fri, 21 Aug 2020 22:41:33 +0100 Subject: [PATCH 5/5] Issue 19: Set up Sonarcloud analysis #19 Updated the version of the JDK to 11 for Sonarcloud to be happy. --- .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 94225f4c..efc1f1dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: # We can re-enable it, if we get a sponsor. #operating-system: [ubuntu-latest, windows-latest] operating-system: [ubuntu-latest] - java: [ 8 ] + java: [ 11.0.3 ] steps: - name: Checkout uses: actions/checkout@v2