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 26e3533
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,32 @@ on:
branches:
- master

env:
MAVEN_OPTS: '-Xms2048m -Xmx2048m'
MAVEN_ARGS: '--show-version --errors --batch-mode --no-transfer-progress -Dinvoker.streamLogsOnFailures=true -Pnoindy'

jobs:
ci:
strategy:
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: 'temurin'

- name: full test
run: ./mvnw --batch-mode --activate-profiles nonindy clean install invoker:install invoker:run
run: ./mvnw -DgroovyVersion=${{ matrix.groovy-version }} clean install invoker:install invoker:run

0 comments on commit 26e3533

Please sign in to comment.