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 c652e46..865800d 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -1,18 +1,23 @@ -steps: - build: - image: nixos/nix - commands: - - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf - # Lint - - "nix flake check" - - "nix develop --command bash -c 'dotnet tool restore && ./hooks/pre-push'" - # Test - - nix build - - nix run . -- verify AnkiStatic.Test/CapitalsOfTheWorld.json - - 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", + "nix develop --command bash -c 'dotnet tool restore && ./hooks/pre-push'", + # Test + "nix build", + "nix run . -- verify AnkiStatic.Test/CapitalsOfTheWorld.json", + "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" } + ] + } + } +}