This repository was archived by the owner on Apr 29, 2025. It is now read-only.
chore(deps): lock file maintenance (#380) #2215
This file contains hidden or 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: ci | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: npm i -g --force corepack && corepack enable | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "pnpm" | |
| - name: 📦 Install dependencies | |
| run: pnpm install | |
| - name: 🚧 Set up project | |
| run: pnpm dev:prepare | |
| - name: 🔠 Lint project | |
| run: pnpm lint | |
| - name: ✂️ Knip project | |
| run: pnpm knip | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: npm i -g --force corepack && corepack enable | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| cache: "pnpm" | |
| - name: 📦 Install dependencies | |
| run: pnpm install | |
| - name: Install Playwright | |
| # does not need to explicitly set chromium after https://github.com/microsoft/playwright/issues/14862 is solved | |
| run: pnpm playwright install chromium | |
| - name: 🚧 Set up project | |
| run: pnpm dev:prepare | |
| - name: 🧪 Test project | |
| run: pnpm test | |
| - name: 💪 Test types | |
| run: pnpm test:types | |
| - name: 🛠 Build project | |
| run: pnpm build | |
| - name: 🟩 Coverage | |
| if: matrix.os != 'windows-latest' | |
| uses: codecov/codecov-action@v5 |