Skip to content

feat: proper error handling for addonPage #227

feat: proper error handling for addonPage

feat: proper error handling for addonPage #227

Workflow file for this run

name: Frontend Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
types: ["opened", "synchronize", "reopened", "ready_for_review"]
paths-ignore:
- "*.md"
- ".gitignore"
- ".dockerignore"
permissions:
contents: read
pull-requests: write
jobs:
# storybook:
# if: github.event.pull_request.draft == false
# name: Storybook (visual tests)
# runs-on: ubuntu-latest
# steps:
# - name: Check out Git repository
# uses: actions/checkout@v3
# - name: Set up environment
# uses: ./.github/actions/ci-env
# - name: Run Storybook tests
# run: npm run test-storybook:ci
vitest:
if: github.event.pull_request.draft == false
name: Vitest (unit tests)
runs-on: ubuntu-latest
needs: check
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up environment
uses: PolarExpress/ts-configs/.github/actions/ci-env@main
- name: Run React unit tests
run: pnpm test
- name: Report test coverage
uses: davelosert/vitest-coverage-report-action@v2
with:
file-coverage-mode: all
json-summary-path: ./coverage/vitest/coverage-summary.json
json-final-path: ./coverage/vitest/coverage-final.json
check:
uses: PolarExpress/ts-configs/.github/workflows/ci-workflow.yml@main