Files
little_learner/.woodpecker/.build.yml
Smaug123 c1dc35dfd1
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
Fix condition
2023-07-23 21:19:03 +01:00

22 lines
1.1 KiB
YAML

pipeline:
build:
image: nixos/nix
commands:
- echo ${CI_BUILD_EVENT}
- echo ${CI_COMMIT_BRANCH}
- echo ${CI_REPO_DEFAULT_BRANCH}
# Lint
- nix --experimental-features 'nix-command flakes' develop --command cargo -- fmt --all -- --check
- nix --experimental-features 'nix-command flakes' develop --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate
- nix --experimental-features 'nix-command flakes' develop .#ci --command alejandra -- --check .
- nix --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")'