fix: update .env.production (#86) #226
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: 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 |