[#282] fork parameter #296
Workflow file for this run
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: GitHub CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
MAVEN_OPTS: '-Xms2048m -Xmx2048m' | |
MAVEN_ARGS: >- | |
--show-version | |
--errors | |
--batch-mode | |
--no-transfer-progress | |
-Dinvoker.streamLogsOnFailures=true | |
defaults: | |
run: | |
shell: 'bash -o errexit -o nounset -o pipefail {0}' | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
groovy-version: | |
- 2.5.23 | |
- 3.0.19 | |
- 4.0.15 | |
- 5.0.0-alpha-2 | |
env: | |
MVN_GROOVY_GROUP_ID: ${{format('{0}{1}', '-DgroovyVersion=', matrix.groovy-version)}} | |
MVN_GROOVY_VERSION: ${{(startsWith(matrix.groovy-version, '2') || startsWith(matrix.groovy-version, '3')) && '-DgroovyGroupId=org.codehaus.groovy' || '-DgroovyGroupId=org.apache.groovy'}} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: jdk setup | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: install groovy | |
shell: bash | |
run: > | |
curl -s "https://get.sdkman.io" | bash; | |
source "$HOME/.sdkman/bin/sdkman-init.sh"; | |
sdk install groovy ${{ matrix.groovy-version }} | |
- name: full test | |
shell: bash | |
run: >- | |
source "$HOME/.sdkman/bin/sdkman-init.sh"; | |
sdk use groovy ${{ matrix.groovy-version }}; | |
./mvnw ${MAVEN_ARGS} ${MVN_GROOVY_GROUP_ID} ${MVN_GROOVY_VERSION} | |
clean install invoker:install invoker:run |