Skip to content

Commit

Permalink
Fixed master workflow issues
Browse files Browse the repository at this point in the history
  • Loading branch information
goldy1992 authored May 27, 2022
1 parent f3b497d commit 9329823
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/master-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: Master Build and Test Workflow
on:
push:
branches:
- master
- master-release-hotfix
jobs:
master-build-and-test:
permissions:
contents: 'read'
id-token: 'write'
environment: release_env
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -45,13 +48,14 @@ jobs:
- name: Assemble debug and androidTest APKs
run: ./gradlew assembleDebug assembleAndroidTest

- name: Setup gcloud
uses: google-github-actions/setup-gcloud@master
- id: 'auth'
uses: 'google-github-actions/[email protected]'
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_email: ${{ secrets.GCP_SERVICE_ACCOUNT_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
credentials_json: ${{ secrets.RELEASE_SERVICE_ACCOUNT_JSON }}


- name: Setup gcloud
uses: google-github-actions/[email protected]

- name: Run firebase tests on gcloud and pull coverage data
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/master-trigger-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Master Check Run Completed Workflow
on:
workflow_dispatch:
check_run:
types: [completed]
branches:
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Set up Python 3.9
uses: actions/[email protected]
Expand Down

0 comments on commit 9329823

Please sign in to comment.