test updates #60
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Install dependencies | |
run: | | |
Install-Module -Force -Scope CurrentUser Pester -MaximumVersion '5.99.99' | |
cd .scripts | |
dotnet publish -o .. | |
shell: pwsh | |
- name: Run tests and generate coverage report | |
env: | |
include_integration_tests: true | |
run: | | |
$res = Invoke-Pester -CI -PassThru | |
if ($res.FailedCount -gt 0) { | |
throw "$($res.FailedCount) tests failed." | |
} | |
shell: pwsh | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |