Woodpecker pipelines (#1)
Co-authored-by: Smaug123 <patrick+github@patrickstevens.co.uk> Reviewed-on: #1
This commit is contained in:
10
.woodpecker/.all-checks-complete.yml
Normal file
10
.woodpecker/.all-checks-complete.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
pipeline:
|
||||
echo:
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "All required checks complete"
|
||||
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
skip_clone: true
|
21
.woodpecker/.build.yml
Normal file
21
.woodpecker/.build.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
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" && CI_COMMIT_BRANCH != CI_REPO_DEFAULT_BRANCH)'
|
Reference in New Issue
Block a user