Resolve mock path from env or prop #129
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: Unit Tests | |
# Trigger | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/** | |
- build.gradle | |
- gradle.properties | |
- resources/** | |
- src/** | |
- vars/** | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- .github/workflows/** | |
- build.gradle | |
- gradle.properties | |
- resources/** | |
- src/** | |
- vars/** | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
java: [ '17', '21' ] | |
groovy: | |
- ${{ vars.GROOVY_2_4 }} | |
- ${{ vars.GROOVY_2_5 }} | |
- ${{ vars.GROOVY_3_0 }} | |
- ${{ vars.GROOVY_4_0 }} | |
#exclude: | |
# - groovy: ${{ vars.GROOVY_2_4 }} | |
# java: '21' | |
# - groovy: ${{ vars.GROOVY_2_5 }} | |
# java: '21' | |
name: Java ${{ matrix.java }} Groovy ${{ matrix.groovy }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
#- if: ${{ !(matrix.groovy == vars.GROOVY_4_0 && matrix.java == '17') }} | |
- name: Unit Tests | |
run: GROOVY_VERSION=${{ matrix.groovy }} ./gradlew check | |
#- if: ${{ matrix.groovy == vars.GROOVY_4_0 && matrix.java == '17' }} | |
- name: Coveralls Test Coverage | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: GROOVY_VERSION=${{ matrix.groovy }} ./gradlew coveralls |