Skip to content

Updated dependencies (#12) #33

Updated dependencies (#12)

Updated dependencies (#12) #33

Workflow file for this run

name: Test and Coverage by Vitest
on:
push:
branches: ['main']
pull_request:
branches: ['main']
permissions:
contents: read
pull-requests: write
concurrency:
group: coverage
cancel-in-progress: false
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
cache-dependency-path: ./package.json
node-version-file: .nvmrc
cache: yarn
- uses: browser-actions/setup-chrome@v1
- uses: browser-actions/setup-firefox@v1
- name: Install dependencies
run: yarn install
- name: Setup Playright
run: yarn playwright install --with-deps --only-shell
- name: Run test coverage
run: yarn tests:complete
- name: 'Report Coverage'
# Set if: always() to also generate the report if tests are failing
# Only works if you set `reportOnFailure: true` in your vite config as specified above
if: always()
uses: davelosert/vitest-coverage-report-action@v2