-
Notifications
You must be signed in to change notification settings - Fork 371
35 lines (33 loc) · 949 Bytes
/
ci.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
name: Test
on:
pull_request:
branches: "**"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: "[Setup] Java"
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: "[Setup] Android"
uses: android-actions/setup-android@v3
with:
cmdline-tools-version: 10406996
log-accepted-android-sdk-licenses: false
- name: "[Test] Linting"
working-directory: OneSignalSDK
run: |
./gradlew ktlintCheck --console=plain
- name: "[Test] SDK Unit Tests"
working-directory: OneSignalSDK
run: |
./gradlew testReleaseUnitTest --console=plain --continue
- name: Unit tests results
if: failure()
uses: actions/upload-artifact@v3
with:
name: unit-tests-results
path: OneSignalSDK/unittest/build