Skip to content

[maven-release-plugin] prepare for next development iteration #24

[maven-release-plugin] prepare for next development iteration

[maven-release-plugin] prepare for next development iteration #24

Workflow file for this run

name: CI
on:
push:
paths:
- 'src/**'
- 'pom.xml'
pull_request_target:
paths:
- 'src/**'
- 'pom.xml'
jobs:
lint:
name: Lint files with Checkstyle
runs-on: ubuntu-latest
steps:
- name: Checkout latest
uses: actions/checkout@v4
- name: Run CheckStyle
uses: nikitasavinov/checkstyle-action@master
with:
level: error
fail_on_error: true
workdir: ./src
checkstyle_config: ./checkstyle.xml
github_token: ${{ secrets.GITHUB_TOKEN }}
test:
name: Test on ${{ matrix.name }}
needs: lint
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
name: Linux
- os: macos-latest
name: macOS
- os: windows-latest
name: Windows
steps:
- name: Checkout latest
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: zulu
cache: maven
- name: Run Tests
run: mvn --batch-mode --update-snapshots verify -"Dgpg.skip"
deploy:
name: Deploy Snapshot
needs: test
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
steps:
- name: Checkout latest
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: zulu
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATEKEY }}
- name: Deploy Snapshot
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}