-
-
Notifications
You must be signed in to change notification settings - Fork 38
58 lines (56 loc) · 1.63 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
name: Test project
on:
push:
branches:
- 'master'
- 'development'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/[email protected]
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
cache-read-only: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/development' }}
- name: Test supabase-kt
run: ./gradlew build --stacktrace --configuration-cache
test:
strategy:
matrix:
command: [
'jvmTest testDebugUnitTest testReleaseUnitTest',
'jsTest',
'iosX64Test iosSimulatorArm64Test',
'macosArm64Test macosX64Test',
'tvosX64Test tvosSimulatorArm64Test',
'watchosX64Test watchosSimulatorArm64Test',
'mingwX64Test',
]
runs-on: macos-latest
needs: build
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/[email protected]
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
cache-read-only: true
- name: Test supabase-kt
run: ./gradlew ${{ matrix.command }} --stacktrace --configuration-cache