2019-12-22 20:36:24 +01:00
|
|
|
name: "Build job"
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
|
|
dotnet: ['3.1.100']
|
2020-08-30 19:06:05 +02:00
|
|
|
environment: ['Debug', 'Release']
|
2019-12-22 20:36:24 +01:00
|
|
|
name: ${{ matrix.environment }} build (Dotnet ${{ matrix.dotnet }}, OS ${{ matrix.os }})
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Setup dotnet
|
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
|
|
|
dotnet-version: ${{ matrix.dotnet }}
|
|
|
|
- name: Build
|
|
|
|
run: dotnet build -c "${{ matrix.environment }}"
|
|
|
|
- name: Test
|
|
|
|
run: dotnet test -c "${{ matrix.environment }}"
|