Add .props and .targets to reduce duplication in project files #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: dotnet | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
# workflow_dispatch: | |
# inputs: | |
# version: | |
# description: 'Release version to tag and create' | |
# required: false | |
env: | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
DOTNET_NOLOGO: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [windows-latest] | |
configuration: [Debug, Release] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build -c ${{ matrix.configuration }} --no-restore | |
- name: Test | |
run: dotnet test -c ${{ matrix.configuration }} --no-build --verbosity normal | |
# - name: Upload coverage reports to Codecov | |
# uses: codecov/codecov-action@v3 | |
# with: | |
# flags: ${{ matrix.os }},${{ matrix.configuration }} |