Merge pull request #3 from modos189/up2 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |