Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed Jan 10, 2025
1 parent cbddb4b commit 82a84f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ name: Bun CI

on:
push:
branches: [ "main" ]
branches: ['main']
pull_request:
branches: [ "main" ]
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run lint
- run: bun run build
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: cd packages/logic-core && bun install
- run: bun install
- run: bun run lint
- run: cd packages/logic-core && bun run build
- run: bun run build
2 changes: 1 addition & 1 deletion packages/logic-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"scripts": {
"build": "rimraf dist/ && bun run codegen && bunx --bun tsc && bun run typegen",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint": "cd ../../ && eslint ./packages/logic-core --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"codegen": "bun ./scripts/genEntry.ts && bun ./scripts/genImports.ts",
"typegen": "bun ./scripts/genTypes.ts",
"prepublishOnly": "bun run build"
Expand Down

0 comments on commit 82a84f8

Please sign in to comment.