Configure Gitea Actions CI/CD pipeline and workspace guidelines

This commit is contained in:
Marek Novák
2026-07-01 02:04:53 +02:00
parent 161eb7d387
commit 01308e2b5e
2 changed files with 87 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
name: Build and Test
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet/sdk:8.0
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Restore dependencies
run: dotnet restore NixWslWrapper.sln
- name: Build solution
run: dotnet build NixWslWrapper.sln --configuration Release --no-restore
- name: Run unit tests
run: dotnet test NixWslWrapper.sln --configuration Release --no-build --verbosity normal