Updated CI file.
This commit is contained in:
@@ -6,23 +6,37 @@ on:
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
runs-on: self-hosted
|
||||
env:
|
||||
CI: "true"
|
||||
runs-on: [self-hosted, linux, x64, docker]
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||
options: >-
|
||||
--privileged
|
||||
-v /var/run/docker.sock:/var/run/docker.sock
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Sanity check Docker
|
||||
run: |
|
||||
docker version
|
||||
docker info
|
||||
|
||||
- uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '9.0.x'
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.nuget/packages
|
||||
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
|
||||
restore-keys: |
|
||||
nuget-${{ runner.os }}-
|
||||
- run: dotnet restore
|
||||
- run: dotnet build --configuration Release --no-restore
|
||||
- run: dotnet test --configuration Release --no-build -p:CI=true --logger "trx;LogFileName=test-results.trx"
|
||||
|
||||
- name: Restore
|
||||
- run: dotnet restore
|
||||
|
||||
- name: Build
|
||||
- run: dotnet build --configuration Release --no-restore
|
||||
|
||||
- name: Test
|
||||
- run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user