Updated CI file.
This commit is contained in:
@@ -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 }}-
|
||||||
- run: dotnet restore
|
|
||||||
- run: dotnet build --configuration Release --no-restore
|
- name: Restore
|
||||||
- run: dotnet test --configuration Release --no-build -p:CI=true --logger "trx;LogFileName=test-results.trx"
|
- 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