check nix develop
in github action
#35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/DeterminateSystems/magic-nix-cache#usage | |
name: Nix Flake | |
on: | |
push: | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- run: nix develop --check | |
- run: nix flake check | |
- name: "Check `nix develop` shell" | |
run: nix develop --check | |
- name: "Check `nix develop` shell can run command" | |
run: nix develop --command "echo" |