Skip to content

Commit

Permalink
Update Android build script.
Browse files Browse the repository at this point in the history
- TEMP change to onPush
- Add authentication
- Move test and lint to first step,
  • Loading branch information
jessgusclark committed May 24, 2023
1 parent 858ccac commit bb76906
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
name: Android Build SDK

on:
release:
on: push

jobs:
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up NPM authentication
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_PACKAGES_KEY }}" >> ~/.npmrc

- name: Install dependencies
run: |
yarn
- name: Test and Lint
run: |
yarn ganache &
yarn test
yarn lint
build-android:
needs: install-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up NPM authentication
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_PACKAGES_KEY }}" >> ~/.npmrc

- name: Install dependencies
run: |
yarn
yarn ganache &
yarn test
yarn lint
- name: Build Android Release
run: |
Expand Down

0 comments on commit bb76906

Please sign in to comment.