-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
65 lines (51 loc) · 1.56 KB
/
justfile
File metadata and controls
65 lines (51 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# 🧐 Default interactive selection command.
default:
@just --choose
# 🚀 Runs a full CI build.
ci: build_release test_release pack
# 🛜 Installs dependencies.
restore:
dotnet restore && dotnet tool restore
# 🧹 Cleans all build artifacts.
clean:
dotnet clean
# 🔨 Builds the library in debug.
[group("Debug")]
build:
dotnet build
# 🧪 Runs the debug test project.
[group("Debug")]
test:
dotnet test
# 🔨 Builds the library in release.
[group("Release")]
build_release:
dotnet build --configuration Release
# 🧪 Runs the released test project.
[group("Release")]
test_release:
dotnet test --configuration Release
# 📊 Runs tests and collects code coverage.
[group("Release")]
coverage:
dotnet tool run dotnet-coverage collect "dotnet test" --output ./coverage.xml --output-format cobertura
# 📦 Packages the project ready to publish to NuGet.
[group("Release")]
pack:
dotnet pack --configuration Release --no-restore --output ./nuget
# 👀 Runs the demo API project.
api:
dotnet run --project WhatIsHeDoing.DomainModels.APITest
# 🎨 Fixes code style issues automatically.
format:
dotnet format style
# 🔍 Checks for code style issues without making changes.
check-format:
dotnet format style --verify-no-changes
# ⬆️ Upgrades all library dependencies.
outdated:
dotnet outdated --upgrade
# ⬆️ Runs an interactive framework upgrade.
upgrade:
# https://learn.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-how-to-upgrade#upgrade-a-project-from-the-cli
upgrade-assistant upgrade