-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 971 Bytes
/
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
name: Unit tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_call:
env:
TEST: true
jobs:
test:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
repository: 'ZNotify/kt-sdk'
- uses: ZNotify/test-server-action@master
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Get Kotlin version
shell: bash
run: node scripts/kotlin.js
- name: Cache KotlinNative
uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('build/kotlinVersion.txt') }}
- uses: burrunan/gradle-cache-action@v1
name: Check
with:
concurrent: true
arguments: check --scan