40 lines
764 B
YAML
40 lines
764 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
|
|
|
|
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@v3
|
|
with:
|
|
dotnet-version: 7.0.x
|
|
- name: Install dependencies
|
|
run: dotnet restore
|
|
- name: Build
|
|
run: dotnet build
|
|
- name: Test
|
|
run: dotnet test |