Fix pipeline (#13)
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: #13
This commit is contained in:
2024-05-31 23:10:23 +00:00
parent 419f27053f
commit eb1cc43a08
2 changed files with 27 additions and 23 deletions

View File

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

View File

@@ -1,22 +1,27 @@
steps:
build:
image: nixos/nix
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
# Lint
- "nix flake check"
# Test
- nix build
- nix run . -- --help
- nix run . -- auth --help
- nix run . -- lookup-gym --help
- nix run . -- fullness --help
- nix run . -- activity --help
- nix develop --command markdown-link-check README.md
- 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",
# Test
"nix build",
"nix run . -- --help",
"nix run . -- auth --help",
"nix run . -- lookup-gym --help",
"nix run . -- fullness --help",
"nix run . -- activity --help",
"nix develop --command markdown-link-check README.md",
"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" }
]
}
}
}