-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (44 loc) · 1.08 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
---
on:
pull_request:
branches: [ master ]
jobs:
###########################
# BUILD STAGE
###########################
build-kotlin:
runs-on: infra1-medium
steps:
- uses: actions/checkout@v3
- name: cache
uses: actions/cache@v3
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: infra1-medium
needs: build-kotlin
steps:
- uses: actions/checkout@v3
- name: cache
uses: actions/cache/restore@v3
with:
key: kotlin-build
path: .gradle
- run: |
./gradlew test --info
- name: Archive test outputs
uses: actions/upload-artifact@v3
with:
name: test-artifact
path: '**/build/test-results/**/TEST-*.xml'