Skip to content

Commit d6202af

Browse files
committed
feat(nix): add github CI check to make sure lockfile is in sync
1 parent 1a34d29 commit d6202af

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ jobs:
3333
- name: Install dependencies
3434
run: bun install --frozen-lockfile
3535

36+
- name: Verify Nix lockfile is up to date
37+
run: |
38+
bun run nix:update-lock
39+
if ! git diff --exit-code nix/bun.lock.nix; then
40+
echo "::error::Nix lockfile is out of date. Please run 'bun run nix:update-lock' and commit the changes to nix/bun.lock.nix."
41+
exit 1
42+
fi
43+
3644
- name: Format check
3745
run: bun run format:check
3846

.github/workflows/pr-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ jobs:
3636
- name: Install dependencies
3737
run: bun install --frozen-lockfile
3838

39+
- name: Verify Nix lockfile is up to date
40+
run: |
41+
bun run nix:update-lock
42+
if ! git diff --exit-code nix/bun.lock.nix; then
43+
echo "::error::Nix lockfile is out of date. Please run 'bun run nix:update-lock' and commit the changes to nix/bun.lock.nix."
44+
exit 1
45+
fi
46+
3947
- name: Format check
4048
run: bun run format:check
4149

0 commit comments

Comments
 (0)