Deploy security rules #64
Workflow file for this run
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: Cloud Functions | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopend | |
jobs: | |
functions_test: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./functions | |
GOOGLE_APPLICATION_CREDENTIALS: /opt/gcp_key.json | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: npm ci | |
working-directory: ${{env.working-directory}} | |
# Emulator requires login. See: https://github.com/firebase/firebase-tools/issues/5510 | |
- name: Export service account credentials to file | |
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOLSCORE_1973 }}' > '${{ env.GOOGLE_APPLICATION_CREDENTIALS }}' | |
- name: Run Lint | |
run: npm run lint | |
working-directory: ${{env.working-directory}} | |
- name: Build | |
run: npm run build | |
working-directory: ${{env.working-directory}} | |
- name: Run Tests | |
run: npm run test | |
working-directory: ${{env.working-directory}} |