17 lines
536 B
YAML
17 lines
536 B
YAML
steps:
|
|
build:
|
|
image: nixos/nix
|
|
commands:
|
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
|
# Lint
|
|
- "nix run .#fantomas -- --check ."
|
|
- "nix develop --command bash -c 'dotnet tool restore && ./hooks/pre-push'"
|
|
# Test
|
|
- 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"
|