Skip to content

ci: Refactor Minimap API build and push workflows #827

ci: Refactor Minimap API build and push workflows

ci: Refactor Minimap API build and push workflows #827

Workflow file for this run

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 }}