-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (83 loc) · 2.52 KB
/
checks.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Checks
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
checks: write
jobs:
Checks-JS:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get tags
run: git fetch --tags origin
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '21'
cache: 'gradle'
- name: Setup Chrome
uses: browser-actions/[email protected]
- name: Run Js tests
run: ./gradlew jsBrowserTest --warn --continue
- name: Run Wasm tests
run: ./gradlew wasmJsBrowserTest --warn --continue
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: '**/build/test-results/**/TEST-*.xml'
check_name: 'JS JUnit Test Report'
require_tests: true
Checks-Jvm:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get tags
run: git fetch --tags origin
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '21'
cache: 'gradle'
- name: Run Android tests
run: ./gradlew :library:testDebugUnitTest --warn --continue
- name: Run Jvm tests
run: ./gradlew :library:jvmTest --warn --continue
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/**/TEST-*.xml'
check_name: 'JVM JUnit Test Report'
require_tests: true
Checks-Apple:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get tags
run: git fetch --tags origin
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '21'
cache: 'gradle'
- name: Run Apple tests
run: ./gradlew :library:iosSimulatorArm64Test --warn --continue
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/**/TEST-*.xml'
check_name: 'Apple JUnit Test Report'
require_tests: true