Merge pull request #201 from concord-consortium/fix-staging-deployment #207
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: Run Firestore and QueryCreator Tests | |
on: | |
push: | |
paths: | |
- 'functions/**' | |
- 'query-creator/**' | |
jobs: | |
test_rules: | |
name: Firestore Access Rule Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16' | |
- run: npm install -g firebase-tools | |
- run: npm ci | |
working-directory: tests | |
- run: firebase -c ../firebase.json emulators:exec --only firestore "npm test" | |
working-directory: tests | |
test_query_creator: | |
name: Query Creator Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16' | |
- run: npm ci | |
working-directory: query-creator/create-query | |
- run: npm run test | |
working-directory: query-creator/create-query |