Skip to content

Commit 4613471

Browse files
author
sebastian
committed
rm SonarCloud
1 parent c36c343 commit 4613471

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: SonarCloud
1+
name: Build and Test
22
on:
33
push:
44
branches:
@@ -7,31 +7,20 @@ on:
77
types: [opened, synchronize, reopened]
88
jobs:
99
build:
10-
name: Build and analyze
10+
name: Build and Test
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
with:
15-
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
16-
- name: Set up JDK 17
14+
- name: Set up JDK 21
1715
uses: actions/setup-java@v3
1816
with:
19-
java-version: 17
20-
distribution: 'zulu' # Alternative distribution options are available.
21-
- name: Cache SonarCloud packages
22-
uses: actions/cache@v3
23-
with:
24-
path: ~/.sonar/cache
25-
key: ${{ runner.os }}-sonar
26-
restore-keys: ${{ runner.os }}-sonar
17+
java-version: 21
18+
distribution: 'temurin'
2719
- name: Cache Maven packages
2820
uses: actions/cache@v3
2921
with:
3022
path: ~/.m2
3123
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3224
restore-keys: ${{ runner.os }}-m2
33-
- name: Build and analyze
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
36-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
37-
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=rcsb_ciftools-java
25+
- name: Build and test
26+
run: mvn -B clean verify

0 commit comments

Comments
 (0)