-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.11 KB
/
main.yml
File metadata and controls
40 lines (34 loc) · 1.11 KB
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
name: Check
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Check
runs-on: ${{ matrix.os }}
strategy:
matrix:
# ktor's CIO engine isn't yet available on windows: once supported, we should add windows-latest to the following list
os: [ ubuntu-latest, macOS-latest ]
steps:
# 1 - checkout repositories
- name: Check out
uses: actions/checkout@v3
# 2 - setup cache and tools
- name: Cached Konan
uses: actions/cache@v2
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-konan-
- name: Cached Gradle
uses: actions/cache@v3
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
# 3 - tests
- name: Build and test
run: ./gradlew check