Woodpecker pipelines

This commit is contained in:
Smaug123
2023-07-20 18:12:07 +01:00
parent f873e5ca3d
commit 9e910a651e
4 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
pipeline:
nix:
image: alpine
commands:
- echo "All required checks complete"
depends_on:
- run
- build
- ci-specific

11
.woodpecker/build.yml Normal file
View File

@@ -0,0 +1,11 @@
pipeline:
build:
image: nixos/nix
commands:
- nix develop --command cargo test --verbose --release
- nix develop --command cargo test --verbose
lint:
image: nixos/nix
commands:
- nix develop --command cargo -- fmt --all -- --check
- nix develop --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate

View File

@@ -0,0 +1,7 @@
pipeline:
alejandra:
image: nixos/nix
commands:
- nix develop .#ci --command alejandra -- --check .
- nix develop .#ci --command markdown-link-check README.md

6
.woodpecker/run.yml Normal file
View File

@@ -0,0 +1,6 @@
pipeline:
nix:
image: nixos/nix
commands:
- nix build
- nix run