Tests: Refactor vitest setup. #2469
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: CI | |
on: [push, pull_request] | |
env: | |
CI: true | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
jobs: | |
build: | |
name: 🔨 Build | |
needs: [lint, typecheck] | |
timeout-minutes: 15 | |
runs-on: ubuntu-lates | |
steps: | |
- name: 🕶️ Checkout repository | |
uses: actions/checkout@v4 | |
- name: 📦 Install | |
uses: ./.github/common/install | |
- name: 🔨 Build Everything | |
run: bun run build:packages | |
test: | |
name: 🧪 Test | |
timeout-minutes: 15 | |
needs: [lint, typecheck] | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🕶️ Checkout repository | |
uses: actions/checkout@v4 | |
- name: 📦 Install | |
uses: ./.github/common/install | |
- name: 🔨 Build Packages | |
run: bun run build:packages | |
- name: 🧪 Test | |
run: bun run test | |
- name: 🦺 Report Coverage to GitHub | |
uses: davelosert/vitest-coverage-report-action@v2.3.0 | |
- name: 🦺 Codecov Coverage Reports | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
lint: | |
name: 📋 Lint | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🕶️ Checkout repository | |
uses: actions/checkout@v4 | |
- name: 📦 Install | |
uses: ./.github/common/install | |
- name: 🔨 Build Packages | |
run: bun run build:packages | |
- name: 📋 Lint | |
run: bun run lint | |
typecheck: | |
name: ✅ Typecheck | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🕶️ Checkout repository | |
uses: actions/checkout@v4 | |
- name: 📦 Install | |
uses: ./.github/common/install | |
- name: 🔨 Build Packages | |
run: bun run build:packages | |
- name: ✅ Typecheck | |
run: bun run typecheck |