This commit is contained in:
@@ -6,22 +6,21 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-test:
|
build-test:
|
||||||
runs-on: [self-hosted, linux, x64, docker]
|
runs-on: self-hosted
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4
|
- uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.nuget/packages
|
path: ~/.nuget/packages
|
||||||
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
|
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
nuget-${{ runner.os }}-
|
nuget-${{ runner.os }}-
|
||||||
- name: Restore
|
- run: dotnet restore
|
||||||
run: dotnet restore
|
- run: dotnet build --configuration Release --no-restore
|
||||||
- name: Build (Release)
|
- run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx"
|
||||||
run: dotnet build --configuration Release --no-restore
|
|
||||||
- name: Test
|
|
||||||
env: { DOTNET_CLI_TELEMETRY_OPTOUT: 1 }
|
|
||||||
run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user