Set ado-build.yml to trigger CI on merge to main #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
name: Build and Test | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
name: Run | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# GitHelper unit test requires full clone, not the shallow default of GitHub Actions | |
fetch-depth: 0 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '3.1.x' | |
- name: Show dotnet info | |
run: dotnet --info | |
- name: Build and Test | |
# NoFormat because there is a separate format check action | |
run: ./BuildAndTest.cmd -NoFormat |