Files
anki-static/.woodpecker/.build.yml
patrick 97ab6ee820
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/all-checks-complete Pipeline was successful
Add flake-check (#7)
Co-authored-by: Smaug123 <patrick+github@patrickstevens.co.uk>
Reviewed-on: #7
2023-10-04 08:40:27 +00:00

19 lines
590 B
YAML

steps:
build:
image: nixos/nix
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
# Lint
- "nix flake check"
- "nix develop --command bash -c 'dotnet tool restore && ./hooks/pre-push'"
# Test
- nix build
- nix run . -- verify AnkiStatic.Test/CapitalsOfTheWorld.json
- nix develop --command dotnet -- test
- nix develop --command dotnet -- test --configuration Release
when:
- event: "push"
evaluate: 'CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH'
- event: "pull_request"