mirror of
https://github.com/Smaug123/nix-dotfiles
synced 2025-10-06 06:58:41 +00:00
Mailcap and flake check (#26)
This commit is contained in:
24
.github/workflows/lint.yaml
vendored
24
.github/workflows/lint.yaml
vendored
@@ -7,28 +7,6 @@ on:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
shellcheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: "actions/checkout@v4"
|
||||
- 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@v4"
|
||||
- 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:
|
||||
@@ -45,6 +23,4 @@ jobs:
|
||||
steps:
|
||||
- run: "echo \"All required checks complete.\""
|
||||
needs:
|
||||
- "shellcheck"
|
||||
- "format"
|
||||
- "flake-check"
|
||||
|
Reference in New Issue
Block a user