-
Notifications
You must be signed in to change notification settings - Fork 8
114 lines (109 loc) · 3.98 KB
/
all-tests.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: All Tests
on:
schedule:
# Every saturday at 2am EST
- cron: '0 7 * * SAT'
workflow_dispatch:
workflow_call:
permissions:
contents: read
checks: write
jobs:
acceptance-tests:
name: Acceptance Tests
runs-on: macos-14
strategy:
fail-fast: false
matrix:
linkage: [static, dynamic]
configuration: [release, debug]
concurrency: ci-all-acceptance-tests-${{ github.ref }}-${{ matrix.linkage }}-${{ matrix.configuration }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run Acceptance Tests
uses: gradle/[email protected]
with:
arguments: ':acceptance-tests:functional:kgp_latestTest'
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ matrix.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ matrix.configuration }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always()
with:
check_name: "Test Reports - Acceptance Tests (${{ matrix.linkage }}, ${{ matrix.configuration }})"
report_paths: 'SKIE/acceptance-tests/build/test-results/functional__*/TEST-*.xml'
require_tests: true
type-mapping-tests:
name: Type Mapping Tests
runs-on: macos-14
strategy:
fail-fast: false
matrix:
target: [ios_arm64, ios_x64, ios_simulator_arm64, macos_arm64, macos_x64]
linkage: [static, dynamic]
configuration: [release]
concurrency: ci-all-type-mapping-tests-${{ github.ref }}-${{ matrix.linkage }}-${{ matrix.configuration }}-${{ matrix.target }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run Type Mapping Tests
uses: gradle/[email protected]
with:
arguments: ':acceptance-tests:type-mapping:kgp_latestTest'
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ matrix.linkage }}
KOTLIN_TARGET: ${{ matrix.target }}
KOTLIN_BUILD_CONFIGURATION: ${{ matrix.configuration }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always()
with:
check_name: "Test Reports - Type Mapping Tests (${{ matrix.target }}, ${{ matrix.linkage }}, ${{ matrix.configuration }})"
report_paths: 'SKIE/acceptance-tests/build/test-results/type-mapping__*/TEST-*.xml'
require_tests: true
external-libraries-tests:
name: External Libraries Tests
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
linkage: [static, dynamic]
configuration: [release, debug]
concurrency: ci-all-external-libraries-tests-${{ github.ref }}-${{ matrix.linkage }}-${{ matrix.configuration }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run External Libraries Tests
uses: gradle/[email protected]
with:
arguments: ':acceptance-tests:libraries:kgp_latestTest'
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ matrix.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ matrix.configuration }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always()
with:
check_name: "Test Reports - External Libraries Tests (${{ matrix.linkage }}, ${{ matrix.configuration }})"
report_paths: 'SKIE/acceptance-tests/build/test-results/libraries__*/TEST-*.xml'
require_tests: true