Skip to content

Merge pull request #313 from PermanentOrg/PER-9362-tags-and-metadata-… #966

Merge pull request #313 from PermanentOrg/PER-9362-tags-and-metadata-…

Merge pull request #313 from PermanentOrg/PER-9362-tags-and-metadata-… #966

Workflow file for this run

name: Unit tests
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install dependencies
run: npm install
- name: Run unit tests
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY_DEV }}
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY_DEV }}
STRIPE_API_KEY: ${{ secrets.STRIPE_TEST_KEY }}
run: npm run coverage:ci
- name: Upload report to codecov
uses: codecov/codecov-action@v3