Configure Gitea Actions CI/CD pipeline and workspace guidelines
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user