From a85f9038586910ccedb1181561895a2cc91ead71 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 21 Apr 2020 22:32:48 +0200 Subject: [PATCH] npm caching and exclude APP folder (#127) * npm caching and exclude APP folder * fix APP to App * Ignore paths on pull_request --- .github/workflows/android.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index a271bb1..1e5d9f0 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -12,12 +12,20 @@ env: ANDROID_HOME: ~/android-sdk-linux ANDROID_APK_FILE: 'android/app/build/outputs/apk/release/app-release.apk' -on: +on: + pull_request: + branches: + - master + paths-ignore: + - '.github/**' + - '**.md' + - 'LICENSE' push: paths-ignore: - '.github/**' - '**.md' - 'LICENSE' + - 'App/**' jobs: build: @@ -30,15 +38,18 @@ jobs: with: java-version: '8' java-package: jdk + - name: Install Android SDK - run: | - sh ci/install-android-sdk.sh + run: sh ci/install-android-sdk.sh + + - uses: bahmutov/npm-install@v1 + - name: Install npm dependencies - run: | - npm ci + run: npm ci + - name: Build APK - run: | - npm run android:build-apk + run: npm run android:build-apk + - name: Archive APK uses: actions/upload-artifact@v1 with: