Skip to content

Commit

Permalink
feat: 👷 add typechecks to CI pipeline for Bun and libsql
Browse files Browse the repository at this point in the history
  • Loading branch information
CRBroughton committed May 11, 2024
1 parent 17b5e48 commit ae765e7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/bun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
run: cd src/libsql && bun install
- name: Run unit tests
run: bun test
- name: Run Bun typechecks
run: cd src/bun && bun run typecheck
- name: Run libsql typechecks
run: cd src/libsql && bun run typecheck
- name: Run sqljs typechecks
run: cd src/sqljs && bun run typecheck
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
3 changes: 2 additions & 1 deletion src/bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"dist"
],
"scripts": {
"build": "bun run build.ts",
"typecheck": "tsc --skipLibCheck --noEmit",
"build": "bun run typecheck && bun run build.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"changeset": "npx changeset",
Expand Down
3 changes: 2 additions & 1 deletion src/libsql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"dist"
],
"scripts": {
"build": "bun run build.ts",
"typecheck": "tsc --skipLibCheck --noEmit",
"build": "bun run typecheck && bun run build.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"changeset": "npx changeset",
Expand Down

0 comments on commit ae765e7

Please sign in to comment.