Skip to content

Details only.

Details only. #165

Workflow file for this run

---
name: build
on:
push:
branches: [main, '1']
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
checks: write # to publish test results?
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
server-id: ossrh
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: GPG_SECRET_KEY_PASSPHRASE
- name: Build with Maven
run: mvn -B deploy
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_SECRET_KEY_PASSPHRASE: ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }}
- name: Make sure not changed (test case generates code, but should not change it)
run: git diff --exit-code
- name: Run simple tests
run: |
echo "Making sure it is usable without any further deps"
(cd test/simple ; mvn -B -q -Dexec.args=-; mvn -B dependency:tree)
(cd test/jackson; mvn -B -q ; mvn -B dependency:tree)
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Publish Unit Test Results
uses: EnricoMi/[email protected]
with:
check_name: Tests results
junit_files: "target/surefire-reports/*.xml"