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