Organize imports #194
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: | |
| push: # Runs on all push events | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: ⬣ ESLint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: ⎔ Setup node | |
| uses: actions/setup-node@v3 | |
| with: | |
| cache: npm | |
| cache-dependency-path: ./package.json | |
| node-version: 22 | |
| - name: 📥 Install deps | |
| run: npm ci | |
| - name: 🔬 Lint | |
| run: npm run lint | |
| typecheck: | |
| name: ʦ TypeScript | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: ⎔ Setup node | |
| uses: actions/setup-node@v3 | |
| with: | |
| cache: npm | |
| cache-dependency-path: ./package.json | |
| node-version: 22 | |
| - name: 📥 Install deps | |
| run: npm ci | |
| - name: 🔎 Type check | |
| run: npm run check | |
| unit: | |
| name: ⚡ Unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: ⎔ Setup node | |
| uses: actions/setup-node@v3 | |
| with: | |
| cache: npm | |
| cache-dependency-path: ./package.json | |
| node-version: 22 | |
| - name: 📥 Install deps | |
| run: npm ci | |
| - name: ⚡ Run vitest | |
| run: npm run test:unit -- --coverage | |
| e2e: | |
| name: ⚫️ e2e | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: ⎔ Setup node | |
| uses: actions/setup-node@v3 | |
| with: | |
| cache: npm | |
| cache-dependency-path: ./package.json | |
| node-version: 22 | |
| - name: 📥 Install deps | |
| run: npm ci | |
| - name: 🛠 Setup browsers | |
| run: npx playwright install | |
| - name: 🎭 Playwright run | |
| run: npm test | |
| ruff: | |
| name: 🐶 Ruff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: 🔍 Check | |
| uses: astral-sh/ruff-action@v3 |