-
Notifications
You must be signed in to change notification settings - Fork 78
34 lines (29 loc) · 1.08 KB
/
firebase-function-pr.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
33
34
name: E2E Firebase Function on PR
'on':
jobs:
emulate_firebase_function_and_test:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: npm
- name: Install dependencies
run: npm ci
- name: Production build for static file hosting (client + prerender + function)
run: npm run nx run firebase-function:build:production
- name: User Flow
run: npm run nx run firebase-function:user-flow:production -- --format=md
- name: Test firebase function emulation
id: firebase-function-emulation
uses: push-based/[email protected]
with:
verbose: on
commentId: test-firebase-function--deploy-emulation
onlyComments: on
outPath: ./dist/user-flow/firebase-function
rcPath: projects/firebase-function/.user-flowrc.json