Fix pipeline
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/all-checks-complete Pipeline was successful
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/pr/all-checks-complete unknown status

This commit is contained in:
Smaug123
2024-05-31 22:25:54 +01:00
parent 419f27053f
commit 9f5ccc1579
2 changed files with 27 additions and 23 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,22 +1,27 @@
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",
# Lint "commands": [
- "nix flake check" "echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf",
# Test # Lint
- nix build "nix flake check",
- nix run . -- --help # Test
- nix run . -- auth --help "- nix build",
- nix run . -- lookup-gym --help "- nix run . -- --help",
- nix run . -- fullness --help "- nix run . -- auth --help",
- nix run . -- activity --help "- nix run . -- lookup-gym --help",
- nix develop --command markdown-link-check README.md "- nix run . -- fullness --help",
- nix develop --command dotnet test "- nix run . -- activity --help",
- nix develop --command dotnet test --configuration Release "- nix develop --command markdown-link-check README.md",
"- nix develop --command dotnet test",
when: "- nix develop --command dotnet test --configuration Release"
- event: "push" ],
evaluate: 'CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH' "when": [
- event: "pull_request" { "event": "push", "evaluate": "CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH" },
{ "event": "pull_request" }
]
}
}
}