Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
THOREL Arnaud authored and THOREL Arnaud committed Nov 28, 2023
1 parent 6bbbec8 commit ad46cc7
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,31 @@ jobs:
server-password: MAVEN_PASSWORD
- name: Build with Maven
run: mvn -ntp -B package --file pom.xml
- name: Code Coverage
uses: codecov/codecov-action@v3

coverage:
runs-on: ubuntu-latest
needs: [ "build" ]
steps:
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Sonar
env:

sonar:
runs-on: ubuntu-latest
needs: [ "build" ]
steps:
- env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_PROJECT: Ouest-France_${{ github.event.repository.name }}
run: mvn -ntp -B sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=${{ vars.SONAR_ORGANIZATION }} -Dsonar.projectKey=$SONAR_PROJECT -Dsonar.branch.name=${GITHUB_REF##*/}
- name: Deploy Snapshot
env:

deploy-snapshot:
runs-on: ubuntu-latest
needs: [ "build", "sonar" ]
steps:
- env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
run: |
cat /home/runner/.m2/settings.xml
mvn -ntp -B deploy -DskipTests=true

0 comments on commit ad46cc7

Please sign in to comment.