26 lines
610 B
YAML
26 lines
610 B
YAML
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:10.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
|