mirror of
https://github.com/Smaug123/nix-dotfiles
synced 2025-10-14 10:58:40 +00:00
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 22 to 23. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
shellcheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: "actions/checkout@v3"
|
|
- name: "Install Nix"
|
|
uses: "cachix/install-nix-action@v23"
|
|
with: { "extra_nix_config": "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" }
|
|
- name: "Run Shellcheck"
|
|
run: "nix develop --command bash -c \"find . -type f -name '*.sh' | xargs shellcheck\""
|
|
|
|
format:
|
|
runs-on: "ubuntu-latest"
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: "actions/checkout@v3"
|
|
- name: "Install Nix"
|
|
uses: "cachix/install-nix-action@v23"
|
|
with: { "extra_nix_config": "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" }
|
|
- name: "Run Alejandra"
|
|
run: "nix develop --command alejandra --check ."
|
|
|
|
flake-check:
|
|
runs-on: "ubuntu-latest"
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: "actions/checkout@v3"
|
|
- name: "Install Nix"
|
|
uses: "cachix/install-nix-action@v23"
|
|
with: { "extra_nix_config": "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" }
|
|
- name: "Check flake"
|
|
run: "nix flake check --all-systems"
|
|
|
|
all-required-checks-complete:
|
|
runs-on: "ubuntu-latest"
|
|
steps:
|
|
- run: "echo \"All required checks complete.\""
|
|
needs:
|
|
- "shellcheck"
|
|
- "format"
|
|
- "flake-check"
|