2020-11-15 19:27:15 +01:00
|
|
|
name: Build job
|
|
|
|
|
2019-12-22 20:36:24 +01:00
|
|
|
on:
|
|
|
|
push:
|
2020-11-15 19:27:15 +01:00
|
|
|
branches: [ master ]
|
|
|
|
paths-ignore:
|
|
|
|
- '.github/*'
|
|
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
|
|
- '*.yml'
|
|
|
|
- 'README.md'
|
2019-12-22 20:36:24 +01:00
|
|
|
pull_request:
|
2020-11-15 19:27:15 +01:00
|
|
|
branches: [ master ]
|
|
|
|
paths-ignore:
|
|
|
|
- '.github/*'
|
|
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
|
|
- '*.yml'
|
|
|
|
- 'README.md'
|
|
|
|
|
2019-12-22 20:36:24 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
2020-11-15 19:27:15 +01:00
|
|
|
name: ${{ matrix.os }} (${{ matrix.configuration }})
|
2019-12-22 20:36:24 +01:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
2020-11-15 19:27:15 +01:00
|
|
|
configuration: [Debug, Release]
|
|
|
|
fail-fast: false
|
|
|
|
env:
|
|
|
|
POWERSHELL_TELEMETRY_OPTOUT: 1
|
|
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
2019-12-22 20:36:24 +01:00
|
|
|
steps:
|
2020-11-15 19:27:15 +01:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-dotnet@v1
|
2019-12-22 20:36:24 +01:00
|
|
|
with:
|
2020-11-15 19:27:15 +01:00
|
|
|
dotnet-version: 5.0.x
|
2019-12-22 20:36:24 +01:00
|
|
|
- name: Build
|
2020-11-15 19:27:15 +01:00
|
|
|
run: dotnet build -c "${{ matrix.configuration }}"
|
2019-12-22 20:36:24 +01:00
|
|
|
- name: Test
|
2020-11-15 19:27:15 +01:00
|
|
|
run: dotnet test -c "${{ matrix.configuration }}"
|