Bump @babel/traverse from 7.22.8 to 7.23.2 in /firebase-rules-coverage #46
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: Lints & Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: ${{ matrix.package }} lints on Node ${{ matrix.node_version }} | |
strategy: | |
matrix: | |
package: | |
- 'firebase-rules-coverage' | |
- 'firebase-rules-generator' | |
node_version: | |
- '16' | |
- '18' | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
working-directory: ${{ matrix.package }} | |
- name: Run ESLint | |
run: yarn lint | |
working-directory: ${{ matrix.package }} | |
test: | |
runs-on: ubuntu-latest | |
name: ${{ matrix.package }} tests on Node ${{ matrix.node_version }} | |
strategy: | |
matrix: | |
package: | |
- 'firebase-rules-coverage' | |
- 'firebase-rules-generator' | |
node_version: | |
- '16' | |
- '18' | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
working-directory: ${{ matrix.package }} | |
- name: Run tests | |
run: yarn test | |
working-directory: ${{ matrix.package }} | |
- name: Report coverage | |
if: ${{ success() || failure() }} | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
flag-name: ${{ matrix.package }}-node-${{ matrix.node_version }} | |
parallel: true | |
path-to-lcov: './${{ matrix.package }}/coverage/lcov.info' | |
finish: | |
needs: test | |
runs-on: ubuntu-latest | |
if: ${{ success() || failure() }} | |
steps: | |
- name: Finalize coverage reporting | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
parallel-finished: true |