build: Remove unnecessary context and file paths #853
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 Build & Test | |
on: [ push, pull_request ] | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
# Projects to build | |
project: [ | |
{ name: "Common", path: "./WowsKarma.Common/WowsKarma.Common.csproj" }, | |
{ name: "API", path: "./WowsKarma.Api/WowsKarma.Api.csproj" }, | |
{ name: "Web (legacy)", path: "./WowsKarma.Web/WowsKarma.Web.csproj" }, | |
] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '7.x' | |
# include-prerelease: true | |
- name: Restore dependencies for ${{ matrix.project.name }} | |
run: dotnet restore ${{ matrix.project.path }} | |
- name: Build ${{ matrix.project.name }} | |
run: dotnet build --no-restore ${{ matrix.project.path }} | |
- name: Test ${{ matrix.project.name }} | |
run: dotnet test --no-build --verbosity normal ${{ matrix.project.path }} |