Turned some switch
blocks into switch
expressions
#946
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: Run Build and Unit tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
main: | |
runs-on: ${{ matrix.environment }} | |
strategy: | |
matrix: | |
environment: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
fail-fast: false | |
env: | |
DOTNET_NOLOGO: 1 | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages | |
steps: | |
- name: π Fetch Sources π | |
uses: actions/checkout@v2 | |
- name: π‘ Perform Common Steps π‘ | |
uses: ./.github/workflows/perform-common-steps | |
- name: π Build Solution π | |
shell: bash | |
run: dotnet build | |
- name: β Run Unit Tests β | |
shell: bash | |
run: dotnet test |