Skip to content

Commit

Permalink
Use bun (#55)
Browse files Browse the repository at this point in the history
* Use Bun to install dependencies

* Update CI workflow to use Bun

* Update Deploy workflow to use Bun
  • Loading branch information
sergiodxa authored Oct 12, 2023
1 parent 91a5734 commit e5e415b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17,752 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,34 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bahmutov/npm-install@v1
- run: npm run build
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run build

typecheck:
name: Typechecker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bahmutov/npm-install@v1
- run: npm run typecheck
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run typecheck

test:
name: Unit and Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bahmutov/npm-install@v1
- run: npm run test -- --coverage
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run test:coverage

lint:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bahmutov/npm-install@v1
- run: npm run build
- run: npm run lint
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run build
- run: bun run lint
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: bahmutov/npm-install@v1
- run: npm run build
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run build

- uses: cloudflare/pages-action@v1
with:
Expand Down
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit e5e415b

Please sign in to comment.