feat: improved pipeline
This commit is contained in:
1 parent
b89a053622
commit
f80837ea94
1 file changed
+7
-1
@@ -18,6 +18,8 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE: git.greboh.dev/greboh/hearth-api
|
IMAGE: git.greboh.dev/greboh/hearth-api
|
||||||
|
DOTNET_NOLOGO: true
|
||||||
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -31,7 +33,11 @@ jobs:
|
|||||||
- uses: actions/setup-dotnet@v4
|
- uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: 10.0.x
|
dotnet-version: 10.0.x
|
||||||
- run: dotnet build Hearth.slnx -c Release
|
# Hearth.Api references every module, so this compiles everything that ships.
|
||||||
|
# The AppHost (local dev only) is skipped: its Aspire packages are hundreds of MB per restore.
|
||||||
|
# Restore logs at normal verbosity so every package download shows up.
|
||||||
|
- run: dotnet restore Hosts/Hearth.Api/Hearth.Api.csproj -v normal
|
||||||
|
- run: dotnet build Hosts/Hearth.Api/Hearth.Api.csproj -c Release --no-restore
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
mapfile -t projects < <(git ls-files '*Tests.csproj')
|
mapfile -t projects < <(git ls-files '*Tests.csproj')
|
||||||
|
|||||||
Reference in new issue
Block a user