Skip to content

Commit

Permalink
ci: use bun
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed May 13, 2024
1 parent 2bb0d19 commit b24006a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
version: 7
bun-version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm install
bun install
- name: Build
run: |
pnpm run build --if-present
bun run build --if-present
- name: Run tests
run: |
pnpm run test
bun run test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- name: Install Bun
uses: oven-sh/setup-bun@v1
with:
version: 7
bun-version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache: "bun"
- name: Install dependencies
run: |
pnpm install
bun install
- name: Run tests
run: |
pnpm run test
bun run test
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "node esbuild.config.mjs",
"lint": "eslint --ext .ts .",
"build": "tsc -noEmit -skipLibCheck && pnpm lint && node esbuild.config.mjs production",
"build": "tsc -noEmit -skipLibCheck && bun lint && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json",
"semantic-release": "semantic-release",
"test": "vitest --passWithNoTests"
Expand Down Expand Up @@ -115,4 +115,4 @@
]
]
}
}
}

0 comments on commit b24006a

Please sign in to comment.