Files
little_learner/.woodpecker/.build.yml
Smaug123 ed41d77f58
Some checks failed
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/pr/all-checks-complete unknown status
How about this
2023-07-23 17:44:22 +01:00

19 lines
1.1 KiB
YAML

pipeline:
build:
image: nixos/nix
commands:
# Lint
- nix --store /mnt/nix --eval-store local --experimental-features 'nix-command flakes' develop --command cargo -- fmt --all -- --check
- nix --store /mnt/nix --eval-store local --experimental-features 'nix-command flakes' develop --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate
- nix --store /mnt/nix --eval-store local --experimental-features 'nix-command flakes' develop .#ci --command alejandra -- --check .
- nix --store /mnt/nix --eval-store local --experimental-features 'nix-command flakes' develop .#ci --command markdown-link-check README.md
# Test
- nix --experimental-features 'nix-command flakes' develop --command cargo test --verbose --release
- nix --experimental-features 'nix-command flakes' develop --command cargo test --verbose
# Run through Nix
- nix --experimental-features 'nix-command flakes' build
- nix --experimental-features 'nix-command flakes' run
when:
evaluate: '(CI_BUILD_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH) || (CI_BUILD_EVENT == "pull_request")'