Files
jsmr/.gitea/workflows/ci.yml
Workflow config file is invalid. Please check your config file: yaml: line 19: mapping values are not allowed in this context
2025-11-02 14:49:10 -05:00

43 lines
1.0 KiB
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
- name: Sanity check Docker
run: |
docker version
docker info
- 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"