trying github action perms tweak #410
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: CI | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
# on: workflow_dispatch | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@ce177499ccf9fd2aded3b0426c97e5434c2e8a73 | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get Latest | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- uses: actions/checkout@v2 | |
- name: Restore Dependency Cache | |
uses: actions/cache@v1 | |
with: | |
path: ~/.npm | |
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }} | |
- name: Get Package Version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@master | |
with: | |
path: core/ | |
- name: set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
verify-android: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
needs: | |
- setup | |
steps: | |
- uses: actions/checkout@v2 | |
- name: create local.properties file for app creds | |
env: | |
PORTALS_KEY: ${{ secrets.portals_key }} | |
run: echo portals_key=\"$PORTALS_KEY\" > ./local.properties | |
- name: set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- run: npm run verify | |
working-directory: ./ |