31 lines
868 B
YAML
31 lines
868 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build-test:
|
|
runs-on: [self-hosted, linux, x64, docker]
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
options: >-
|
|
--privileged
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '9.0.x'
|
|
|
|
- name: Docker sanity (ensures socket mount is working)
|
|
run: docker version
|
|
|
|
- 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 --logger "trx;LogFileName=test-results.trx" |