chore: update dependencies #17
Workflow file for this run
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: Check code | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
check: | |
name: Check code | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: pnpm | |
- name: 📦 Install dependencies | |
run: pnpm install | |
- name: 🔍 Run eslint | |
run: pnpm lint | |
- name: 🔍 Check formatting | |
run: pnpm format:check | |
- name: 🛠️ Build | |
run: pnpm build | |
- name: 🧪 Run unit tests | |
run: pnpm test | |
# install system dependencies for Playwright | |
# see: https://playwright.dev/docs/browsers#install-system-dependencies | |
- name: 📦 Install Playwright system dependencies | |
run: pnpm exec playwright install-deps | |
- name: 🧪 Run Playwright tests | |
run: pnpm test:playwright | |
# upload report if tests failed for debugging | |
- uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: playwright-report | |
path: | | |
playwright-report/ | |
test-results/ |