Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pin the Bun version instead of using 'latest' for build consistency.

Suggested change
bun-version: latest
bun-version: 1.0.25


- name: Install dependencies
run: bun install --frozen-lockfile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The --frozen-lockfile flag is specific to Yarn and not supported in Bun. For Bun, the equivalent flag is --frozen, which ensures dependencies are installed exactly as specified in the lockfile without updating it.

Suggested change
run: bun install --frozen-lockfile
run: bun install --frozen

This will maintain the same intended behavior of preventing lockfile updates during CI runs.

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.


- name: Run tests
run: bun test
Binary file modified bun.lockb
Binary file not shown.
Loading