Feature/7 use msbuild api to load projects #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./src | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Init Git submodules | |
working-directory: ${{env.working-directory}} | |
run: git submodule update --init --recursive | |
- name: Restore dependencies | |
working-directory: ${{env.working-directory}} | |
run: dotnet restore nugit.sln | |
- name: Build | |
working-directory: ${{env.working-directory}} | |
run: dotnet build nugit.sln --no-restore | |
- name: Test | |
working-directory: ${{env.working-directory}} | |
run: dotnet test nugit.sln --no-build --verbosity normal |