Skip to content

Commit

Permalink
ci(actions): Add testing for more Nix usage scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 28, 2022
1 parent 5c0cef6 commit 5de6646
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/nix.yml
Expand Up @@ -19,7 +19,15 @@ jobs:
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
# Upstream package sometimes has flags set that disable flake checking
- name: Setup test env
run: |
echo 'NIXPKGS_ALLOW_BROKEN=1' >> $GITHUB_ENV
- name: Check flake
run: nix flake check
- name: Build flake
run: nix build
- name: Test run flake
- name: Test run in shell
run: nix shell -c sile --version
- name: Test run as flake
run: nix run . -- --version

0 comments on commit 5de6646

Please sign in to comment.