Skip to content

Commit 9dce690

Browse files
committed
💚 fix-ci: fixed ci/cd workflows setting up bun
added bun to run ci workflows
1 parent 0f69005 commit 9dce690

File tree

10 files changed

+1169
-170
lines changed

10 files changed

+1169
-170
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,18 @@ jobs:
2020
node-version: ${{ matrix.node }}
2121

2222
- name: 🛠️ Set up Bun.sh
23-
uses: oven-sh/setup-bun@v1
23+
uses: oven-sh/setup-bun@v2
2424
with:
2525
bun-version: latest
2626

27-
- name: 📦 Install Node.js dependencies
27+
- name: 📦 Install Node.js dependencies with Node.js
2828
run: npm ci
2929

30-
- name: 🏗️ Build project
30+
- name: 📦 Install Node.js dependencies with Bun
31+
run: bun install --frozen-lockfile
32+
33+
- name: 🏗️ Build project with Node.js
3134
run: npm run build
35+
36+
- name: 🏗️ Build project with Bun
37+
run: bun run build

.github/workflows/docs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
node-version: ${{ matrix.node }}
2121

2222
- name: 🛠️ Set up Bun.sh
23-
uses: oven-sh/setup-bun@v1
23+
uses: oven-sh/setup-bun@v2
2424
with:
2525
bun-version: latest
2626

27-
- name: 📦 Install Node.js dependencies
27+
- name: 📦 Install Node.js dependencies with Node.js
2828
run: npm ci
2929

30+
- name: 📦 Install Node.js dependencies with Bun
31+
run: bun install --frozen-lockfile
32+
3033
- name: 🏗️ 📝 Build Project Documentation
31-
run: npm run docs
34+
run: bun run docs
3235
#Need to run dependency-version-badge and edit the readme file here as well.

.github/workflows/lint.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@ jobs:
2222
with:
2323
node-version: ${{ matrix.node }}
2424

25+
- name: 🛠️ Set up Bun.sh
26+
uses: oven-sh/setup-bun@v2
27+
with:
28+
bun-version: latest
29+
2530
# ESLint and Prettier must be in `package.json`
26-
- name: 📦 Install Node.js dependencies
31+
- name: 📦 Install Node.js dependencies with Node.js
2732
run: npm ci
2833

34+
- name: 📦 Install Node.js dependencies with Bun
35+
run: bun install --frozen-lockfile
36+
2937
- name: 🧹 🎨 Run linters and formatting
3038
uses: wearerequired/lint-action@v2
3139
with:

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,26 @@ jobs:
2323
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node }}
26+
27+
- name: 🛠️ Set up Bun.sh
28+
uses: oven-sh/setup-bun@v2
29+
with:
30+
bun-version: latest
2631

2732
- name: 📦 Install Node.js dependencies
2833
run: npm ci
2934

35+
- name: 📦 Install Node.js dependencies with Bun
36+
run: bun install --frozen-lockfile
37+
3038
# CHANGE/ADD/SETUP YOUR ADDITIONAL TEST COMMANDS AND TEST ACTIONS BELOW HERE:
3139

3240
- name: 🧪 📊 Test and coverage
3341
run: npm run test
3442

43+
- name: 🧪 📊 Test and coverage with Bun
44+
run: bun run test
45+
3546
- name: 📤 📊 Upload coverage reports to Codecov
3647
uses: codecov/codecov-action@v4.5.0
3748
with:

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"bento",
66
"cacache",
77
"commitlint",
8+
"compat",
89
"debendabot",
910
"depcheckrc",
1011
"esdoc",
@@ -13,6 +14,7 @@
1314
"iname",
1415
"modclean",
1516
"oxlint",
17+
"quickfix",
1618
"shieldio",
1719
"snyk",
1820
"upgradeps"

0 commit comments

Comments
 (0)