Merge pull request #538 from microsoft/dependabot/github_actions/dot-… #458
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: Scalar | |
on: | |
push: | |
branches: [ main, releases/* ] | |
pull_request: | |
branches: [ main, releases/* ] | |
env: | |
SCALAR_TEST_SKIP_VSTS_INFO: true | |
jobs: | |
validate_scalar: | |
name: "CI" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-20.04, windows-2019, macos-13] | |
features: [ignored] | |
env: | |
BUILD_FRAGMENT: bin/Release/netcoreapp3.1 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Indicate full history so Nerdbank.GitVersioning works. | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.302 | |
- name: Install dependencies | |
run: dotnet restore | |
env: | |
DOTNET_NOLOGO: 1 | |
- name: Build | |
run: dotnet build --configuration Release --no-restore -p:UseAppHost=true # Force generation of executable on macOS. | |
- name: Unit test | |
run: dotnet test --no-restore |