-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 992 Bytes
/
functions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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}}