chore: use central package versions (#2825) #28
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: Validate | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
######################################################################### | |
build-and-test: | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-13] | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Check out code | |
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 | |
6.0.x | |
- name: Show dotnet info | |
run: dotnet --info | |
- name: Build and Test | |
# NoFormat because there is a separate format check action below | |
run: pwsh ./scripts/BuildAndTest.ps1 -NoFormat | |
######################################################################### | |
build-multitool-for-npm: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout out code | |
uses: actions/checkout@v4 | |
- name: Build Multitool for npm | |
run: ./scripts/BuildMultitoolForNpm.ps1 | |
######################################################################### | |
check-format: | |
runs-on: windows-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Install format tool | |
run: dotnet tool install -g dotnet-format | |
- name: dotnet format | |
run: dotnet-format --folder --check --exclude .\src\Sarif\Autogenerated\ |