Merge pull request #101 from kiosion/dependabot/npm_and_yarn/vite-5.3.3 #204
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: Tests | |
on: | |
pull_request: | |
branches: [ "main" ] | |
push: | |
branches: [ "main" ] | |
workflow_call: | |
concurrency: | |
group: tests-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
vitest: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.0.0' | |
- name: Install PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: '8.6.0' | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Run Tests | |
run: pnpm vitest --no-watch | |
playwright: | |
name: Playwright Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.0.0' | |
- name: Install PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: '8.6.0' | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Run Tests | |
run: | | |
pnpm exec playwright install | |
pnpm playwright test |