Skip to content

Integration Tests

Integration Tests #968

name: Integration Tests
on:
pull_request:
schedule:
- cron: '41 04 * * *'
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
env:
Mindee__ApiKey: ${{ secrets.MINDEE_API_KEY_SE_TESTS }}
jobs:
test-nix:
name: Integration Test on *NIX
timeout-minutes: 30
strategy:
max-parallel: 4
matrix:
os:
- "ubuntu-22.04"
- "macos-13"
dotnet-version:
- "net6.0"
- "net7.0"
- "net8.0"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
- name: Install dependencies
run: |
dotnet restore
- name: Build
run: |
dotnet build -f ${{ matrix.dotnet-version }}
- name: Test
run: |
dotnet test -f ${{ matrix.dotnet-version }} --verbosity normal "tests\Mindee.IntegrationTests"
test-windows:
name: Integration Test on Windows
needs: test-nix
timeout-minutes: 10
strategy:
max-parallel: 4
matrix:
os:
- "windows-2022"
dotnet-version:
- "net482"
- "net6.0"
- "net7.0"
- "net8.0"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
- name: Install dependencies
run: |
dotnet restore
- name: Test
run: |
dotnet test -f ${{ matrix.dotnet-version }} --no-restore --verbosity normal "tests\Mindee.IntegrationTests"