@@ -97,43 +97,44 @@ jobs:
9797 }]
9898 - name : Test
9999 run : mvn package
100- test-sonar-package :
101- name : Run Trevas tests with coverage & sonar checks
102- # Trevas main repo commit branch or merged PR
103- if : github.repository == 'InseeFr/Trevas' &&
104- (github.event_name == 'push' ||
105- github.event.pull_request.head.repo.fork == false ||
106- (github.event.pull_request.head.repo.fork == true &&
107- github.event.pull_request.merged == true))
108- runs-on : ubuntu-latest
109- needs : format
110- steps :
111- - uses : actions/checkout@v4
112- with :
113- fetch-depth : 0
114- - name : Set up Maven Central Repository
115- uses : actions/setup-java@v4
116- with :
117- java-version : 17
118- distribution : " adopt"
119- - uses : s4u/maven-settings-action@v3.0.0
120- with :
121- githubServer : false
122- servers : |
123- [{
124- "id": "Github",
125- "username": "${{ secrets.GH_PACKAGES_USERNAME }}",
126- "password": "${{ secrets.GH_PACKAGES_PASSWORD }}"
127- }]
128- - name : Test, package and analyze with maven & SonarCloud
129- run : mvn verify sonar:sonar -Pcoverage -Dsonar.projectKey=InseeFr_Trevas -Dsonar.organization=inseefr -Dsonar.host.url=https://sonarcloud.io
130- env :
131- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
132- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
100+ # test-sonar-package:
101+ # name: Run Trevas tests with coverage & sonar checks
102+ # Trevas main repo commit branch or merged PR
103+ # if: github.repository == 'InseeFr/Trevas' &&
104+ # (github.event_name == 'push' ||
105+ # github.event.pull_request.head.repo.fork == false ||
106+ # (github.event.pull_request.head.repo.fork == true &&
107+ # github.event.pull_request.merged == true))
108+ # runs-on: ubuntu-latest
109+ # needs: format
110+ # steps:
111+ # - uses: actions/checkout@v4
112+ # with:
113+ # fetch-depth: 0
114+ # - name: Set up Maven Central Repository
115+ # uses: actions/setup-java@v4
116+ # with:
117+ # java-version: 17
118+ # distribution: "adopt"
119+ # - uses: s4u/maven-settings-action@v3.0.0
120+ # with:
121+ # githubServer: false
122+ # servers: |
123+ # [{
124+ # "id": "Github",
125+ # "username": "${{ secrets.GH_PACKAGES_USERNAME }}",
126+ # "password": "${{ secrets.GH_PACKAGES_PASSWORD }}"
127+ # }]
128+ # - name: Test, package and analyze with maven & SonarCloud
129+ # run: mvn verify sonar:sonar -Pcoverage -Dsonar.projectKey=InseeFr_Trevas -Dsonar.organization=inseefr -Dsonar.host.url=https://sonarcloud.io
130+ # env:
131+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
132+ # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
133133 publish-release :
134134 name : Publish Trevas modules on Maven
135135 if : startsWith(github.event.ref, 'refs/tags/v')
136- needs : test-sonar-package
136+ # Temp update because of sonar token issue
137+ needs : test
137138 runs-on : ubuntu-latest
138139 steps :
139140 - uses : actions/checkout@v4
0 commit comments