Fix
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/push/all-checks-complete Pipeline was successful
ci/woodpecker/pr/all-checks-complete unknown status

This commit is contained in:
Smaug123
2025-09-08 23:24:16 +01:00
parent 166f4bf4b9
commit 7f696e1284
2 changed files with 8 additions and 7 deletions

View File

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

View File

@@ -3,17 +3,18 @@ steps:
image: nixos/nix
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
# Run through Nix
- nix build
- nix run
- nix flake check
# Lint
- nix develop --command cargo -- fmt --all -- --check
- 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
# Test
- nix develop --command cargo test --verbose --release
- nix develop --command cargo test --verbose
# Run through Nix
- nix build
- nix run
when:
- event: "push"