Skip to content

Commit

Permalink
Merge pull request #871 from oslokommune/firestore-rules-tests
Browse files Browse the repository at this point in the history
Add initial unit tests for Firestore rules
  • Loading branch information
petterhj authored Oct 17, 2023
2 parents 6628837 + 95dccaa commit bf0b63d
Show file tree
Hide file tree
Showing 5 changed files with 1,322 additions and 861 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,22 @@ jobs:
!~/cache/exclude
**/node_modules
~/.cache
~/root/.cache/firebase/emulators
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Use Node.js ${{matrix.node-version}}
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: ${{ matrix.node-version }}

- name: Use Java
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
distribution: 'zulu'
java-version: '17.x'

- name: npm install
run: |
npm ci
Expand All @@ -50,5 +57,6 @@ jobs:
- name: npm test:unit
run: |
npm run test:unit
npm run test:unit:firestore
env:
CI: true
Loading

0 comments on commit bf0b63d

Please sign in to comment.