Modernise #9

Merged
patrick merged 5 commits from modernise into main 2025-09-08 22:59:10 +00:00
2 changed files with 8 additions and 7 deletions
Showing only changes of commit 7f696e1284 - Show all commits

View File

@@ -71,7 +71,7 @@ jobs:
# ] # ]
# } # }
alejandra: format:
{ {
"name": "Nix formatting", "name": "Nix formatting",
"runs-on": "ubuntu-latest", "runs-on": "ubuntu-latest",
@@ -86,8 +86,8 @@ jobs:
"with": { "extra_nix_config": "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" } "with": { "extra_nix_config": "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" }
}, },
{ {
"name": "Run Alejandra", "name": "Run nixpkgs-fmt",
"run": "nix develop .#ci --command alejandra -- --check ." "run": "nix develop .#ci --command nixpkgs-fmt -- --check ."
} }
] ]
} }

View File

@@ -3,17 +3,18 @@ steps:
image: nixos/nix image: nixos/nix
commands: commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
# Run through Nix
- nix build
- nix run
- nix flake check
# Lint # Lint
- nix develop --command cargo -- fmt --all -- --check - nix develop --command cargo -- fmt --all -- --check
- nix develop --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate - nix develop --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate
- nix develop .#ci --command alejandra -- --check . - nix develop .#ci --command nixpkgs-fmt -- --check .
- nix develop .#ci --command markdown-link-check README.md - nix develop .#ci --command markdown-link-check README.md
# Test # Test
- nix develop --command cargo test --verbose --release - nix develop --command cargo test --verbose --release
- nix develop --command cargo test --verbose - nix develop --command cargo test --verbose
# Run through Nix
- nix build
- nix run
when: when:
- event: "push" - event: "push"