Upgrade Fantomas and add Woodpecker build

This commit is contained in:
Smaug123
2023-08-04 21:34:13 +01:00
parent a67ff75dc4
commit 2fe35b4ab6
6 changed files with 34 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
steps:
echo:
image: alpine
commands:
- echo "All required checks complete"
depends_on:
- build
skip_clone: true

17
.woodpecker/.build.yml Normal file
View File

@@ -0,0 +1,17 @@
steps:
build:
image: nixos/nix
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
# Lint
- nix develop --command dotnet -- tool restore
- nix develop --command ./hooks/pre-push
# Test
- nix develop --command dotnet -- test
- nix develop --command dotnet -- test --configuration Release
# Perform build
- "pushd RaftFable && nix develop --command npm -- install && popd"
- "pushd RaftFable && nix develop --command npm -- run-script webpack && popd"
when:
evaluate: '(CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH) || (CI_PIPELINE_EVENT == "pull_request")'