Skip to content

Commit d8d7ac8

Browse files
committed
Add workflow to build & run tests
1 parent 0e0f151 commit d8d7ac8

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Run tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: pnpm/action-setup@v4
12+
- run: pnpm install
13+
- run: pnpm --dir packages/parser run build
14+
- run: pnpm --dir packages/parser run test
15+
- run: pnpm --dir apps/web run test

apps/web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"scripts": {
99
"predev": "pnpm -F @ansi-tools/parser dev &",
1010
"dev": "vite",
11-
"prebuild": "pnpm -F @ansi-tools/parser build && pnpm type-check && pnpm test",
12-
"test": "node --test src/**/*.test.ts",
11+
"prebuild": "pnpm -F @ansi-tools/parser build",
1312
"build": "vite build",
1413
"postbuild": "node --import isum/no-css scripts/build.ts",
14+
"test": "pnpm type-check && node --test src/**/*.test.ts",
1515
"type-check": "tsc"
1616
},
1717
"keywords": [

0 commit comments

Comments
 (0)