Merge pull request #368 from PermanentOrg/lint/storybook/prefer-pasca… #1257
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: 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: '18' | |
- 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 |