(10) restore transitions #104
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 and linting | |
on: | |
push: | |
branches: | |
- dev | |
paths: | |
- "packages/*/src/**/*" | |
- "yarn.lock" | |
- "package.json" | |
- "packages/*/package.json" | |
- "!*.md" | |
- "!./**/*.md" | |
- ".github/workflows/test-unit.yml" | |
workflow_dispatch: | |
env: | |
CI: false | |
ELECTRON_SKIP_BINARY_DOWNLOAD: 1 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: unit tests and type checking | |
continue-on-error: true | |
steps: | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: bun install | |
- name: Build @darkwrite/common | |
run: bun run --filter "@darkwrite/common" build | |
- name: Build @darkwrite/ui | |
run: bun run --filter "@darkwrite/ui" build | |
- name: Run tests | |
run: bun run test | |
continue-on-error: true | |
- name: Check types | |
run: bun typecheck | |
continue-on-error: true | |
- name: Lint | |
run: bun lint | |
continue-on-error: true |