-
Notifications
You must be signed in to change notification settings - Fork 192
53 lines (43 loc) · 1.62 KB
/
kotlin_sdk_test.yml
File metadata and controls
53 lines (43 loc) · 1.62 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
41
42
43
44
45
46
47
48
49
50
51
52
53
# kotlin_sdk_test.yml/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
# This copyright was auto-generated on Wed, Sep 1, 2021 5:05:35 PM
name: Kotlin SDK Unit Testing
on:
pull_request:
branches: [main, public_main_mirror]
paths:
- 'demos/kotlin/kmp_sdk/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout source branch
uses: actions/checkout@v5
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
cache: gradle
cache-dependency-path: demos/kotlin/kmp_sdk
# TODO currently just formatting. Need to go through lint results (gradlew lint)
- name: Lint
working-directory: demos/kotlin/kmp_sdk
shell: bash
run: |
./gradlew ktfmtCheck
- name: Validate Builds
working-directory: demos/kotlin/kmp_sdk
shell: bash
run: |
./gradlew :composeApp:assembleDebug
./gradlew :simplifiedApp:assembleDebug
- name: Run Unit Tests
working-directory: demos/kotlin/kmp_sdk
shell: bash
run: ./gradlew :wsdk:testDebugUnitTest
- name: Validate Doc Build
working-directory: demos/kotlin/kmp_sdk
shell: bash
run: ./gradlew dokkaHtml