Skip to content

Commit

Permalink
build: create workflow to lint, typecheck, and run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
macarie committed Dec 21, 2023
1 parent 4d10990 commit f6232bb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci

on:
push:
branches: [trunk]
pull_request:
branches: [trunk]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20, 21]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: corepack enable
- run: echo node `node --version`, pnpm v`pnpm --version`
- run: pnpm install --frozen-lockfile
- run: pnpm --color --recursive run build
- run: pnpm --color --recursive run lint
- run: pnpm --color --recursive run typecheck
- run: pnpm --color run test

0 comments on commit f6232bb

Please sign in to comment.