Test new upload-artifacts.yml #4
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: "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 }} | |
jobs: | |
deadnix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix with good defaults | |
uses: input-output-hk/install-nix-action@v20 | |
with: | |
extra_nix_config: | | |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk= | |
substituters = https://cache.nixos.org/ https://cache.iog.io/ https://cache.zw3rk.com | |
nix_path: nixpkgs=channel:nixos-unstable | |
- 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}\"" |