From eb1cc43a08dd2d24d55ea962bf7115ef3fbfaa45 Mon Sep 17 00:00:00 2001 From: patrick Date: Fri, 31 May 2024 23:10:23 +0000 Subject: [PATCH] Fix pipeline (#13) Co-authored-by: Smaug123 <3138005+Smaug123@users.noreply.github.com> Reviewed-on: https://gitea.patrickstevens.co.uk/patrick/puregym-unofficial-dotnet/pulls/13 --- .editorconfig | 1 - .woodpecker/.build.yml | 49 +++++++++++++++++++++++------------------- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/.editorconfig b/.editorconfig index 9ef5fed..e207c42 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,7 +2,6 @@ root=true [*] charset=utf-8 -end_of_line=crlf trim_trailing_whitespace=true insert_final_newline=true indent_style=space diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index 0983b09..36ed4ec 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -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" } + ] + } + } +}