Skip to content

Update actions/checkout action to v4 - autoclosed #71

Update actions/checkout action to v4 - autoclosed

Update actions/checkout action to v4 - autoclosed #71

Workflow file for this run

name: Run Tests upon PullRequest
on:
pull_request:
branches:
- master
jobs:
build:
name: Run Test Cases
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('**/buildSrc/src/main/kotlin/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Execute test cases
run: ./gradlew test
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-reports
path: ./*/build/reports/tests/