add option to configure pre- and post-testtasks per test #140
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
java: [8, 11, 17] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.java }} | |
cache: 'gradle' | |
- name: Build with Gradle | |
if: matrix.os == 'ubuntu-latest' | |
run: ./gradlew build --stacktrace | |
- name: Build with Gradle | |
if: matrix.os == 'windows-latest' | |
run: .\gradlew.bat build --stacktrace | |
- name: Store reports | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: reports-${{ runner.os }}-${{ matrix.java }} | |
path: build/reports |