Add flake-check (#7)
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/all-checks-complete Pipeline was successful

Co-authored-by: Smaug123 <patrick+github@patrickstevens.co.uk>
Reviewed-on: #7
This commit is contained in:
2023-10-04 08:40:27 +00:00
parent 8d1904d5ce
commit 97ab6ee820
6 changed files with 60 additions and 35 deletions

View File

@@ -1,18 +1,18 @@
steps:
build:
image: nixos/nix
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
# Lint
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"