-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (41 loc) · 1.17 KB
/
test-build.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
name: Make test build
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
test_build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install six
run: python3 -m pip install six
- name: Install NativeScript
run: |
yarn global add nativescript@latest
tns doctor
tns package-manager set yarn
- name: Yarn dependencies
run: yarn
- name: Make test build
run: tns build android --debug --clean
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: android-app-debug
path: platforms/android/app/build/outputs/apk/debug/app-debug.apk