Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,41 @@ on:
# calling workflow can specify inputs as follows:
# uses: <this reusable workflow>
# with:
# mvn_options: <custom options>
mvn_options:
# mvn-options: <custom options>
mvn-options:
description: 'extra maven command line options (space separated)'
default: ''
required: false
type: string
runner:
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
description: 'label of the hosted runner'
default: 'ubuntu-latest'
required: false
type: string
java-version:
description: 'java version for use with the setup-java action'
default: 21
required: false
type: number

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
# temurin LTS versions
version: [17, 21]
runs-on: ${{ inputs.runner }}

steps:
- uses: actions/checkout@v4

# setup
# https://github.com/actions/setup-java
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.version }}
java-version: ${{ inputs.java-version }}
distribution: 'temurin'
cache: maven

# test and verify
# (note that e.g. `mvn verify` runs all lifecycle phases up to and including the verify phase)
# https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
- name: Run maven verify (skip GPG signing)
run: mvn --batch-mode --update-snapshots --fail-fast -Dgpg.skip ${{ inputs.mvn_options }} verify
- name: Run maven verify
run: mvn --batch-mode --update-snapshots --fail-fast ${{ inputs.mvn-options }} verify
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
test:
uses: FAIRDataTeam/github-workflows/.github/workflows/maven-verify.yml@v1
with:
mvn_options: tidy:check com.github.spotbugs:spotbugs-maven-plugin:check
mvn_options: -Dgpg.skip tidy:check com.github.spotbugs:spotbugs-maven-plugin:check
```

### docker-publish
Expand Down