Files
raft-fable/.woodpecker/.build.yml
2023-08-04 21:34:27 +01:00

18 lines
739 B
YAML

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")'