-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (33 loc) · 1.03 KB
/
gradle-test-all.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
name: tests
# Note: name shows up in a badge. Be careful about renaming.
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
# Java 17 needed for resolving the Android Gradle Plugin
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Cache Kotlin Native compiler
uses: actions/cache@v4
with:
path: ~/.konan
key: kotlin-native-compiler-${{ runner.OS }}
- name: Override Kotlin Version for testing
run: echo "KOTLIN_VERSION_OVERRIDE=2.0.0" >> $GITHUB_ENV
- name: Update yarn.lock which may have changed for the new version
run: ./gradlew :kotlinUpgradeYarnLock
- name: Test with Gradle
run: ./gradlew allTests --no-daemon