Merge pull request #7 from amadejkastelic/crate #8
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
nix: | |
name: check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v3 | |
- name: Set up Alejandra | |
uses: luisnquin/[email protected] | |
- name: Check formatting | |
run: alejandra --check . | |
- name: Install nix action | |
uses: cachix/install-nix-action@v20 | |
with: | |
install_url: https://nixos.org/nix/install | |
extra_nix_config: | | |
auto-optimise-store = true | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
experimental-features = nix-command flakes | |
- name: Flake check | |
run: nix flake check |