chore(deps): bump org.apache.maven.plugins:maven-surefire-plugin (#99) #63
This file contains 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: Test & Release Snapshot to Maven Central | |
env: | |
MAVEN_ARGS: -V -ntp -e | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ 17 ] | |
distribution: [ temurin ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java and Maven | |
uses: actions/setup-java@v3 | |
with: | |
distribution: ${{ matrix.distribution }} | |
java-version: ${{ matrix.java }} | |
cache: 'maven' | |
- name: Run unit tests | |
run: ./mvnw ${MAVEN_ARGS} -B test --file pom.xml | |
- name: Run integration tests | |
run: ./mvnw ${MAVEN_ARGS} -B package --file pom.xml | |
release-snapshot: | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java and Maven | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: 'maven' | |
- name: Release Maven package | |
uses: samuelmeuli/action-maven-publish@v1 | |
with: | |
maven_profiles: "release" | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
nexus_username: ${{ secrets.OSSRH_USERNAME }} | |
nexus_password: ${{ secrets.OSSRH_TOKEN }} |