Files
jsmr/.gitea/workflows/ci.yml
Brian Bicknell daab76ec11
Some checks failed
ci / build-test (push) Failing after 3s
Updated CI file again.
2025-11-02 14:50:48 -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
-v /var/run/docker.sock:/var/run/docker.sock
steps:
- uses: actions/checkout@v4
- 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 }}-
- 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"