Skip to content

Commit

Permalink
Automate testing of other Groovy versions
Browse files Browse the repository at this point in the history
  • Loading branch information
keeganwitt committed Sep 25, 2023
1 parent 1819998 commit bd4cd16
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 62 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,44 @@ on:
branches:
- master

defaults:
run:
shell: 'bash -o errexit -o nounset -o pipefail {0}'

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
version: [2.5.23, 3.0.19, 4.0.15, 5.0.0-alpha-2]
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: jdk setup
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
java-package: jdk
architecture: x64
# - name: unit test
# run: ./mvnw --batch-mode --activate-profiles indy clean test
# env:
# version: ${{ matrix.version }}
# run: |
# majorVersion=$(echo "${version}" | grep --extended-regex --only-matching "^[0-9]+")
# ["${majorVersion}" -gt "3"] && groupId=org.apache.groovy || groupId=org.codehaus.groovy
# ./mvnw --batch-mode -DgroovyVersion="${version}" clean test
# - name: integration test
# run: ./mvnw --batch-mode --activate-profiles indy -Dmaven.test.skip=true clean install invoker:install invoker:run
# env:
# version: ${{ matrix.version }}
# run: |
# majorVersion=$(echo "${version}" | grep --extended-regex --only-matching "^[0-9]+")
# ["${majorVersion}" -gt "3"] && groupId=org.apache.groovy || groupId=org.codehaus.groovy
# ./mvnw --batch-mode -DgroovyVersion="${version}" -Dmaven.test.skip=true clean install invoker:install invoker:run
- name: full test
run: ./mvnw --batch-mode --activate-profiles nonindy clean install invoker:install invoker:run
env:
version: ${{ matrix.version }}
run: |
majorVersion=$(echo "${version}" | grep --extended-regex --only-matching "^[0-9]+")
[ "${majorVersion}" -gt "3" ] && groupId="org.apache.groovy" || groupId="org.codehaus.groovy"
./mvnw --batch-mode -DgroovyVersion="${version}" -DgroovyGroupId="${groupId}" clean install invoker:install invoker:run
57 changes: 0 additions & 57 deletions integrationTestSuite.groovy

This file was deleted.

0 comments on commit bd4cd16

Please sign in to comment.