This repository was archived by the owner on Jul 6, 2024. It is now read-only.
chore(deps): lock file maintenance #22
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 Lint | |
on: | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
auto-optimise-store = true | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
experimental-features = nix-command flakes | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- uses: yaxitech/nix-install-pkgs-action@v4 | |
with: | |
packages: "nixpkgs#statix" | |
- name: Run Statix Lint | |
run: statix fix | |
- name: Nix Flake Checker | |
uses: DeterminateSystems/flake-checker-action@v8 | |
- name: Show changes | |
run: git diff |