Skip to content

Commit 54d25b3

Browse files
committed
chore: update GitHub Actions workflow for testing
- Upgraded Bun setup action from v1 to v2. - Changed Bun version from 1.2.20 to 1.2.0. - Modified dependency installation command to use the frozen lockfile option. - Added a TODO comment to indicate the need for a proper integration test suite environment.
1 parent 5d06ad2 commit 54d25b3

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/knip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Bun
2424
uses: oven-sh/setup-bun@v2
2525
with:
26-
bun-version: "1.2.0"
26+
bun-version: "1.2.20"
2727

2828
- name: Install dependencies
2929
run: bun install --frozen-lockfile

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,23 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Setup Bun
21-
uses: oven-sh/setup-bun@v1
21+
uses: oven-sh/setup-bun@v2
2222
with:
23-
bun-version: 1.2.20
23+
bun-version: "1.2.20"
2424

2525
- name: Install dependencies
26-
run: bun install
26+
run: bun install --frozen-lockfile
2727

2828
- name: Run unit tests
2929
run: bun test:unit
3030

3131
integration-tests:
3232
name: Integration Tests
3333
runs-on: ubuntu-latest
34-
needs: unit-tests # run after unit tests pass
34+
needs: unit-tests # run after unit tests pass
3535

36-
# these are placeholders which is fine for integration tests
36+
# these are placeholders which is fine for integration tests for now
37+
# TODO: remove these and set-up an actual integration test suite environment
3738
env:
3839
KV_URL: redis://localhost:6379
3940
KV_REST_API_READ_ONLY_TOKEN: test-read-only-token

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,5 +172,5 @@
172172
"@nodelib/fs.scandir": "2.1.5",
173173
"@nodelib/fs.stat": "2.0.5"
174174
},
175-
"packageManager": "bun@1.2.0"
175+
"packageManager": "bun@1.2.20"
176176
}

0 commit comments

Comments
 (0)