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
This commit is contained in:
2024-05-31 22:41:14 +00:00
parent 1a5b7fe0ac
commit b96148c826
2 changed files with 23 additions and 19 deletions

View File

@@ -2,7 +2,6 @@ root=true
[*] [*]
charset=utf-8 charset=utf-8
end_of_line=crlf
trim_trailing_whitespace=true trim_trailing_whitespace=true
insert_final_newline=true insert_final_newline=true
indent_style=space indent_style=space

View File

@@ -1,18 +1,23 @@
steps: # yaml-language-server: $schema=https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/pipeline/frontend/yaml/linter/schema/schema.json
build: {
image: nixos/nix "steps": {
commands: "build": {
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf "image": "nixos/nix",
"commands": [
"echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf",
# Lint # Lint
- "nix flake check" "nix flake check",
- "nix develop --command bash -c 'dotnet tool restore && ./hooks/pre-push'" "nix develop --command bash -c 'dotnet tool restore && ./hooks/pre-push'",
# Test # Test
- nix build "nix build",
- nix run . -- verify AnkiStatic.Test/CapitalsOfTheWorld.json "nix run . -- verify AnkiStatic.Test/CapitalsOfTheWorld.json",
- nix develop --command dotnet -- test "nix develop --command dotnet -- test",
- nix develop --command dotnet -- test --configuration Release "nix develop --command dotnet -- test --configuration Release"
],
when: "when": [
- event: "push" { "event": "push", "evaluate": "CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH" },
evaluate: 'CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH' { "event": "pull_request" }
- event: "pull_request" ]
}
}
}