Updated CI file.

This commit is contained in:
2025-11-02 14:49:10 -05:00
parent abd5a81e3e
commit 3a1af758d8

View File

@@ -6,23 +6,37 @@ on:
jobs: jobs:
build-test: build-test:
runs-on: self-hosted runs-on: [self-hosted, linux, x64, docker]
env:
CI: "true"
container: container:
image: ghcr.io/catthehacker/ubuntu:act-latest image: ghcr.io/catthehacker/ubuntu:act-latest
options: >-
--privileged
-v /var/run/docker.sock:/var/run/docker.sock
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Sanity check Docker
run: |
docker version
docker info
- uses: actions/setup-dotnet@v4 - uses: actions/setup-dotnet@v4
with: with:
dotnet-version: '9.0.x' dotnet-version: '9.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
- name: Build
- run: dotnet build --configuration Release --no-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: Test
- run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx"