Files
jsmr/.gitea/workflows/ci.yml
Brian Bicknell 4a37b872bd
Some checks failed
ci / build-test (push) Has been cancelled
Added Docker sanity check.
2025-11-02 15:06:37 -05:00

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"