Skip to content

Commit 275548b

Browse files
authored
Merge pull request #41 from RandomCodeSpace/chore/cleanup-ci-workflows
chore: merge CI + SonarCloud workflows, drop cross-platform job
2 parents a3088ae + 08c9602 commit 275548b

2 files changed

Lines changed: 13 additions & 49 deletions

File tree

.github/workflows/ci-java.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
1416
- uses: actions/setup-java@v4
1517
with:
1618
distribution: 'temurin'
@@ -26,20 +28,14 @@ jobs:
2628
with:
2729
name: coverage-report
2830
path: target/site/jacoco/
29-
30-
cross-platform:
31-
needs: build
32-
strategy:
33-
fail-fast: false
34-
matrix:
35-
os: [windows-latest, macos-latest]
36-
runs-on: ${{ matrix.os }}
37-
steps:
38-
- uses: actions/checkout@v4
39-
- uses: actions/setup-java@v4
40-
with:
41-
distribution: 'temurin'
42-
java-version: '25'
43-
cache: 'maven'
44-
- run: mvn clean verify -B -pl . -Dfrontend.skip=true
45-
continue-on-error: true
31+
- name: SonarCloud analysis
32+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
33+
env:
34+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
35+
run: >
36+
mvn sonar:sonar -B
37+
-Dsonar.projectKey=RandomCodeSpace_code-iq
38+
-Dsonar.organization=randomcodespace
39+
-Dsonar.host.url=https://sonarcloud.io
40+
"-Dsonar.exclusions=**/grammar/**,target/generated-sources/**"
41+
"-Dsonar.coverage.exclusions=**/grammar/**,target/generated-sources/**"

.github/workflows/sonarcloud-java.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)