Skip to content

Test

Test #5

Workflow file for this run

name: Test
on: [pull_request, workflow_dispatch]
jobs:
test:
name: Tests for framework ${{ matrix.framework }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
framework: ['net7.0', 'net8.0']
timeout-minutes: 30
steps:
- uses: actions/[email protected]
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: |
7.0.x
8.0.x
- name: Smoke test
run: |
dotnet run --configuration Release -v diag --framework ${{ matrix.framework }} --project src/openapi2excel.cli --file src/openapi2excel.tests/Sample/Sample1.yaml --out Sample.xlsx
- name: Tests
run: dotnet test --configuration Release --framework ${{ matrix.framework }}