Add badge (#1)

Co-authored-by: Smaug123 <patrick+github@patrickstevens.co.uk>
Reviewed-on: #1
This commit is contained in:
2023-08-04 21:08:12 +00:00
parent 2fe35b4ab6
commit e86a48ff90
5 changed files with 278 additions and 2113 deletions

View File

@@ -4,14 +4,13 @@ steps:
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
# Lint
- nix develop --command dotnet -- tool restore
- nix develop --command ./hooks/pre-push
- "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"
- "pushd RaftFable && nix develop --command npm -- run-script build && popd"
when:
evaluate: '(CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH) || (CI_PIPELINE_EVENT == "pull_request")'