Files
raft-fable/.woodpecker/.build.yml
Smaug123 8984bea60a
Some checks failed
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/pr/all-checks-complete unknown status
I will never understand nix develop
2023-08-04 21:57:08 +01:00

17 lines
717 B
YAML

steps:
build:
image: nixos/nix
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
# Lint
- "nix develop --command bash -c 'dotnet tool restore && ./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")'