Skip to content

Commit

Permalink
[#267] update build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarwell committed Sep 25, 2023
1 parent 5093cfc commit 15735b5
Showing 1 changed file with 31 additions and 9 deletions.
40 changes: 31 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,43 @@ on:
branches:
- master

env:
MAVEN_OPTS: '-Xms2048m -Xmx2048m'
MAVEN_ARGS: |
--show-version
--errors
--batch-mode
--no-transfer-progress
-Dinvoker.streamLogsOnFailures=true
-Pnonindy
jobs:
ci:
strategy:
fail-fast: false
matrix:
jdk: [ 11, 21 ]
groovy-version: ['3.0.18', '4.0.15']
exclude:
# JDK 21 support was added in 4.0.11.
- jdk: 21
groovy-version: '3.0.18'

runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2

- name: jdk setup
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
java-package: jdk
architecture: x64
# - name: unit test
# run: ./mvnw --batch-mode --activate-profiles indy clean test
# - name: integration test
# run: ./mvnw --batch-mode --activate-profiles indy -Dmaven.test.skip=true clean install invoker:install invoker:run
java-version: ${{ matrix.jdk }}
distribution: 'zulu'

- name: full test
run: ./mvnw --batch-mode --activate-profiles nonindy clean install invoker:install invoker:run
run: >-
./mvnw ${MAVEN_ARGS} \
-DgroovyVersion=${{ matrix.groovy-version }} \
-DgroovyGroupId=${{ startsWith( matrix.groovy-version , '3' ) && 'org.codehaus.groovy' || 'org.apache.groovy' }} \
clean install invoker:install invoker:run

0 comments on commit 15735b5

Please sign in to comment.