🐛 Fix description updates #17
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: Test Functions | |
on: | |
pull_request: | |
branches: main | |
paths: | |
- 'functions/**' | |
- 'firebase.*' | |
- '.github/workflows/functions-test.yml' | |
workflow_call: | |
secrets: | |
SERVICE_ACCOUNT_KEY: | |
required: true | |
jobs: | |
test-functions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Use specified Node version | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: 'functions/.nvmrc' | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: ^8.6.9 | |
- name: Install dependencies | |
run: pnpm --C ./functions/ install | |
- name: Create service account key | |
run: echo "$serviceAccountKey" >> ./functions/serviceAccountKey.json | |
env: | |
serviceAccountKey: ${{ secrets.SERVICE_ACCOUNT_KEY }} | |
- name: Run tests | |
run: pnpm --C ./functions/ test |