Skip to content

Merge pull request #51 from OKEAMAH/snyk-fix-cb2c0004d55b8e0d774d2e29… #136

Merge pull request #51 from OKEAMAH/snyk-fix-cb2c0004d55b8e0d774d2e29…

Merge pull request #51 from OKEAMAH/snyk-fix-cb2c0004d55b8e0d774d2e29… #136

Workflow file for this run

name: Testing
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
nodejs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18']
name: node.js_${{ matrix.node }}_test
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: NPM INSTALL
run: npm i
- name: build emulator functions
run: cd _emulator/functions && npm i && npm run build & cd ../..
- name: Install firebase CLI
uses: nick-invision/retry@v1
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: npm i -g firebase-tools@11
- name: Run tests
run: npm run test