Compare commits

...

2 Commits

Author SHA1 Message Date
Smaug123
aa9f1fd2b3 Merge branch 'main' into simplify-flake
Some checks failed
ci/woodpecker/push/all-checks-complete Pipeline is pending
ci/woodpecker/pr/all-checks-complete Pipeline is pending
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/pr/build Pipeline failed
2024-05-31 23:42:21 +01:00
b96148c826 Fix pipeline (#10)
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/all-checks-complete Pipeline was successful
Co-authored-by: Smaug123 <3138005+Smaug123@users.noreply.github.com>
Reviewed-on: #10
2024-05-31 22:41:14 +00:00

View File

@@ -1,18 +1,23 @@
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"
# yaml-language-server: $schema=https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/pipeline/frontend/yaml/linter/schema/schema.json
{
"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" }
]
}
}
}