Skip to content

devops: add linux and mac coverage to PR validation #19

devops: add linux and mac coverage to PR validation

devops: add linux and mac coverage to PR validation #19

Workflow file for this run

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\