-
-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (47 loc) · 1.47 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Run Tests
on:
workflow_dispatch:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run Tests
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-14 ]
runs-on: ${{matrix.os}}
if: github.repository == 'MayakaApps/Kache'
permissions:
contents: read
checks: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup gradle
uses: gradle/actions/setup-gradle@v4
- name: Run check & tests for JVM, JS, and Linux tier 1 & 2 K/N targets
if: startsWith(matrix.os, 'ubuntu')
run: ./gradlew check jvmTest jsTest linuxX64Test --stacktrace
- name: Run tests for Apple tier 1 & 2 K/N targets
if: startsWith(matrix.os, 'macOS')
run: ./gradlew macosX64Test macosArm64Test iosSimulatorArm64Test iosX64Test watchosSimulatorArm64Test watchosX64Test tvosSimulatorArm64Test tvosX64Test --stacktrace
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: always() && github.event_name == 'pull_request'
with:
report_paths: '**/build/test-results/*/TEST-*.xml'
check_name: ${{ runner.os }} Test Report