Files
MauMau-Server/.github/workflows/main.yml
2023-03-22 21:07:31 +01:00

43 lines
877 B
YAML

name: Build & Test
on:
push:
branches:
- mauster
- developmaunt
pull_request:
branches:
- mauster
- developmaunt
workflow_dispatch:
inputs:
branch:
description: 'Branch to build'
required: true
default: 'developmaunt'
concurrency:
group: mau
cancel-in-progress: true
env:
DOTNET_INSTALL_DIR: "./.dotnet"
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@main
with:
dotnet-version: 7.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal