Repository navigation
Bump nixpkgs pins #2958
This file contains hidden or 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: "Lints" | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - master | |
| push: | |
| branches: | |
| - master | |
| defaults: | |
| run: | |
| shell: bash | |
| # do we really want nixos-unstable? | |
| env: | |
| NIX_PATH: "nixpkgs=channel:nixos-unstable" | |
| REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Was `[self-hosted, linux]`, which no longer has any runners; see the note in | |
| # `pipeline.yml`. Nix comes from the shared composite action instead. | |
| jobs: | |
| deadnix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install-nix | |
| - run: | | |
| nix run github:astro/deadnix -- --edit --no-lambda-pattern-names --exclude materialized | |
| TMPFILE=$(mktemp) | |
| git diff >"${TMPFILE}" | |
| git stash -u && git stash drop | |
| nix-shell -p reviewdog --run "reviewdog -f=diff -f.diff.strip=1 -reporter=github-pr-review < \"${TMPFILE}\"" |