Bump actions/checkout from 5.0.0 to 5.0.1 in the github-actions group #240
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: CI | |
| on: [push, pull_request] | |
| env: | |
| MAVEN_ARGS: -B -V -ntp -e -Djansi.passthrough=true -Dstyle.color=always | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - name: Set up Java | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '25' | |
| cache: 'maven' | |
| - name: Test | |
| run: ./mvnw $MAVEN_ARGS verify | |
| javadoc: | |
| name: Javadoc | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - name: Set up Java | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '25' | |
| cache: 'maven' | |
| - name: Generate Javadoc | |
| run: ./mvnw $MAVEN_ARGS -DskipTests package javadoc:javadoc | |
| sonar: | |
| name: Sonar code analysis | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'assertj/assertj-assertions-generator' && github.event_name == 'push' | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - name: Set up Java | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '25' | |
| cache: 'maven' | |
| - name: Test with Sonar | |
| run: > | |
| ./mvnw -V --no-transfer-progress -e clean verify javadoc:javadoc | |
| org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar | |
| -Dsonar.host.url=https://sonarcloud.io | |
| -Dsonar.organization=assertj | |
| -Dsonar.projectKey=assertj_assertj-assertions-generator | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| publish-snapshot: | |
| name: Publish Snapshot | |
| needs: [test, javadoc] | |
| runs-on: ubuntu-latest | |
| if: github.repository_owner == 'assertj' && github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - name: Set up Maven Central | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '25' | |
| server-id: central | |
| server-username: MAVEN_CENTRAL_USERNAME | |
| server-password: MAVEN_CENTRAL_TOKEN | |
| gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| - name: Publish to Maven Central | |
| run: ./mvnw $MAVEN_ARGS -DskipTests -Ppublish deploy | |
| env: | |
| MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} | |
| GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |