Merge branch 'main' into simplify-flake
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/push/all-checks-complete Pipeline was successful
ci/woodpecker/pr/all-checks-complete unknown status

This commit is contained in:
Smaug123
2024-06-01 00:10:43 +01:00

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