-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (48 loc) · 1.18 KB
/
pre-merge.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
---
on:
pull_request:
branches: [ master ]
jobs:
###########################
# BUILD STAGE
###########################
build-kotlin:
runs-on:
group: infra1-runners-arc
labels: runners-cxa-xlarge
steps:
- uses: actions/checkout@v4
- name: cache
uses: actions/cache@v4
with:
key: kotlin-build
path: .gradle
- run: |
./gradlew clean build compileTestKotlin -x test --info
- name: Archive build outputs
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: '**/build/**/*'
###########################
# TEST STAGE
###########################
test-kotlin:
runs-on:
group: infra1-runners-arc
labels: runners-cxa-xlarge
needs: build-kotlin
steps:
- uses: actions/checkout@v4
- name: cache
uses: actions/cache/restore@v4
with:
key: kotlin-build
path: .gradle
- run: |
./gradlew test --info
- name: Archive test outputs
uses: actions/upload-artifact@v4
with:
name: test-artifact
path: '**/build/test-results/**/TEST-*.xml'