Lock file maintenance #33
Workflow file for this run
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
name: Nix CI | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
jobs: | |
nix-flake-check: | |
name: nix flake check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
# Helps avoid rate limiting | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: nix flake check --all-systems --keep-going | |
nix-develop: | |
name: test nix dev shell | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
# Helps avoid rate limiting | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: nix develop -c true | |
nix-fmt: | |
name: nix fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
# Helps avoid rate limiting | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: nix fmt | |
- run: git diff --color=always --exit-code |