mirror of
https://github.com/tiennm99/ccstatusline.git
synced 2026-09-09 02:17:02 +00:00
chore: Add CI (#151)
* Add GitHub CI workflow for lint, test, and build Runs on push to main and PRs. Uses Bun with dependency caching. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Remove branch filter on push trigger to run CI on all branches Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Use bun test in CI test job --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Matthew Breedlove <sirmalloc@gmail.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
Matthew Breedlove
parent
2956842911
commit
78c7bc16f0
@@ -0,0 +1,43 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint & Type Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
cache: true
|
||||
- run: bun install
|
||||
- run: bun tsc --noEmit
|
||||
- run: bunx eslint . --config eslint.config.js --max-warnings=999999
|
||||
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
cache: true
|
||||
- run: bun install
|
||||
- run: bun test
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
needs: [lint, test]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
cache: true
|
||||
- run: bun install
|
||||
- run: bun run build
|
||||
- run: test -f dist/ccstatusline.js
|
||||
Reference in New Issue
Block a user