qa: add e2e tests

This commit is contained in:
Morten Olsen
2024-01-17 00:16:21 +01:00
parent e5064ca905
commit d3ad83ddf7
68 changed files with 1560 additions and 583 deletions

View File

@@ -3,7 +3,7 @@ name: Node.js Package
on:
push:
pull_request:
types: [opened]
types: [opened, synchronize, reopened]
# release:
# types: [created]
@@ -18,6 +18,7 @@ env:
permissions:
contents: read
packages: read
pull-requests: write
jobs:
build:
@@ -34,6 +35,11 @@ jobs:
- run: pnpm install
- run: pnpm run test
- 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
- run: pnpm run build
- uses: actions/upload-artifact@v3
with: