Skip to content

Commit 9cdb884

Browse files
chore: add checking nix flake in ci
1 parent d3b287a commit 9cdb884

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,25 @@ jobs:
5151
run: devenv tasks run occasion:test
5252
- name: Generate coverage report
5353
run: devenv tasks run occasion:coverage
54+
- name: Try to build with nix
55+
run: devenv shell nix build .#occasion-latest
56+
57+
- name: Upload coverage report
58+
uses: coverallsapp/github-action@v2
59+
60+
nix:
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v4
64+
- uses: cachix/install-nix-action@v26
65+
- uses: cachix/cachix-action@v14
66+
with:
67+
name: devenv
68+
- name: Install devenv.sh
69+
run: nix profile install nixpkgs#devenv
70+
71+
- name: Try to build with nix
72+
run: devenv shell nix build .#occasion-latest
5473

5574
- name: Upload coverage report
5675
uses: coverallsapp/github-action@v2

0 commit comments

Comments
 (0)