Upload artifact when test fails #191
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: | |
pull_request: | |
push: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
java: 8 | |
jobtype: 1 | |
- os: windows-latest | |
java: 8 | |
jobtype: 1 | |
- os: windows-latest | |
java: 8 | |
jobtype: 1 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.java }} | |
cache: sbt | |
- name: Setup SBT | |
uses: sbt/setup-sbt@v1 | |
- name: Build and test (1) | |
if: ${{ matrix.jobtype == 1 }} | |
shell: bash | |
run: | | |
sbt -v -Dfile.encoding=UTF-8 -Dsbt.supershell=never "testOnly *ParallelGzipOutputStreamSpecification*" | |
- name: Upload test artifacts | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-gzip-output | |
path: test-gzip-output/ |