Added readonly
modifiers to fields that are never changed (#68)
#72
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
name: .NET Build | |
# Trigger the workflow on push or pull request | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-20.04] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Build with dotnet | |
run: dotnet build --configuration Release | |
- name: Test with dotnet | |
if: runner.os == 'Windows' | |
run: dotnet test --configuration Release | |
- name: Package NuGet | |
if: runner.os == 'Windows' | |
run: dotnet pack src\Modern.Forms\Modern.Forms.csproj --configuration Release | |
- name: Upload NuGet | |
uses: actions/[email protected] | |
if: runner.os == 'Windows' | |
with: | |
name: NuGet Package | |
path: nupkg |