Skip to content

Upgrade to v18

Upgrade to v18 #291

name: E2E Firebase Function on PR
on: pull_request
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