Skip to content

Update workflows to always upload test report even on catastrophic failure #83

Update workflows to always upload test report even on catastrophic failure

Update workflows to always upload test report even on catastrophic failure #83

Workflow file for this run

name: Build Pull Request
on: [ pull_request ]
jobs:
build:
name: build-pr
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up git submodules
run: git submodule init && git submodule update
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Gradle
run: ./gradlew build -x test
- name: Run tests
run: ./gradlew check
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: Test reports
path: build/reports/