fix(deps): update all non-major dependencies (patch) - autoclosed #553
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and push | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| JFROG_USER: ${{ secrets.ARTIFACTORY_AUTH_USER }} | |
| JFROG_PASS: ${{ secrets.ARTIFACTORY_AUTH_TOKEN }} | |
| SONATYPE_GPG_KEY_BASE64: ${{ secrets.SONATYPE_GPG_KEY_BASE64 }} | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| SONATYPE_GPG_KEY_PASSWORD: ${{ secrets.SONATYPE_GPG_KEY_PASSWORD }} | |
| NVD_API_KEY: ${{ secrets.NVD_API_KEY }} | |
| jobs: | |
| maven-package: | |
| if: "!contains(github.event.head_commit.message, 'ci skip')" | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Copy maven settings | |
| run: | | |
| wget https://raw.githubusercontent.com/entur/ror-maven-settings/master/.m2/settings_release_maven_central.xml -O .github/workflows/settings.xml | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: 17 | |
| distribution: liberica | |
| - name: Cache Maven dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| ${{ runner.os }}-maven- | |
| ${{ runner.os }}- | |
| - name: Run maven build | |
| run: ./mvnw package -s .github/workflows/settings.xml -PprettierCheck -Dprettier.nodePath=node -Dprettier.npmPath=npm | |
| - name: Sonar Scan | |
| env: | |
| SONAR_TOKEN: ${{ secrets.ENTUR_SONAR_PASSWORD }} | |
| SONAR_PROJECT_NAME: ${{ github.event.repository.name }} | |
| SONAR_PROJECT_KEY: entur_${{ github.event.repository.name }} | |
| run: | | |
| ./mvnw -Psonar -s .github/workflows/settings.xml \ | |
| org.jacoco:jacoco-maven-plugin:prepare-agent verify \ | |
| org.jacoco:jacoco-maven-plugin:report sonar:sonar \ | |
| -Dmaven.main.skip \ | |
| -DskipTests \ | |
| -Dsonar.projectKey=${SONAR_PROJECT_KEY} \ | |
| -Dsonar.organization=enturas-github \ | |
| -Dsonar.projectName=${SONAR_PROJECT_NAME} \ | |
| -Dsonar.host.url=https://sonarcloud.io \ | |
| -Dsonar.token=${SONAR_TOKEN} | |
| - name: Upload artifact | |
| uses: actions/[email protected] | |
| with: | |
| path: target/*.jar | |
| publish-release: | |
| if: github.repository_owner == 'entur' && github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| needs: [maven-package] | |
| name: Publish release to maven central | |
| uses: entur/gha-maven-central/.github/workflows/maven-publish.yml@v1 | |
| secrets: inherit | |
| with: | |
| push_to_repo: true | |
| snapshot: false |