Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 38 additions & 2 deletions .github/workflows/_test-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ env:
MINDEE_V2_SE_TESTS_OCR_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_OCR_MODEL_ID }}

jobs:
run-tests:
name: Run Integration Tests
run-tests-with-optional-dependencies:
name: Run Integration Tests With Optional Dependencies
timeout-minutes: 30
strategy:
matrix:
Expand Down Expand Up @@ -65,3 +65,39 @@ jobs:

- name: Test code
run: npm run test-integration


run-tests-without-optional-dependencies:
name: Run Integration Tests Without Optional Dependencies
timeout-minutes: 30
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
node-version:
- "18"
- "24"
runs-on: ${{ matrix.os }}

steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install Node.js dependencies
run: npm ci --omit=optional

- name: Compilation
run: npm run build

- name: Test code
run: npm run test-integration-light
37 changes: 35 additions & 2 deletions .github/workflows/_test-units.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
workflow_call:

jobs:
run-tests:
name: Run Tests
run-tests-with-optional-dependencies:
name: Run Tests With Optional Dependencies
strategy:
matrix:
os:
Expand Down Expand Up @@ -42,3 +42,36 @@ jobs:

- name: Test code
run: npm run test
run-tests-without-optional-dependencies:
name: Run Tests Without Optional Dependencies
strategy:
matrix:
os:
- "ubuntu-latest"
node-version:
- "18"
- "20"
- "22"
- "24"
runs-on: ${{ matrix.os }}

steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install Node.js dependencies
run: npm ci --omit=optional

- name: Compilation
run: npm run build

- name: Test code
run: npm run test-light
Loading
Loading