Parallel tests

This commit is contained in:
Ashcon Partovi
2024-06-25 11:17:52 -07:00
parent 2355d4e667
commit ff811eca01
2 changed files with 119 additions and 40 deletions

View File

@@ -22,8 +22,28 @@ on:
jobs:
test:
name: Tests
name: ${{ matrix.label }}
runs-on: ${{ inputs.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- label: Bundler tests
include: bundler/,transpiler/
- label: CLI tests
include: cli/
- label: Node.js tests
include: js/node/
- label: Bun.js tests
include: js/bun/
- label: Web tests
include: js/web/
- label: Regression tests
include: regression/
- label: Integration tests
include: integration/,third_party/
- label: Other tests
exclude: bundler/,transpiler/,cli/integration/,third_party/,js/node/,js/bun/,js/web/,regression/
steps:
- if: ${{ runner.os == 'Windows' }}
name: Setup Git
@@ -73,19 +93,16 @@ jobs:
node-version: 22
- name: Run Tests
id: test
timeout-minutes: 90
timeout-minutes: 30
env:
TMPDIR: ${{ runner.temp }}
BUN_TAG: ${{ inputs.tag }}
BUN_FEATURE_FLAG_INTERNAL_FOR_TESTING: "true"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SMTP_SENDGRID_SENDER: ${{ secrets.SMTP_SENDGRID_SENDER }}
TLS_MONGODB_DATABASE_URL: ${{ secrets.TLS_MONGODB_DATABASE_URL }}
TLS_POSTGRES_DATABASE_URL: ${{ secrets.TLS_POSTGRES_DATABASE_URL }}
TEST_INFO_STRIPE: ${{ secrets.TEST_INFO_STRIPE }}
TEST_INFO_AZURE_SERVICE_BUS: ${{ secrets.TEST_INFO_AZURE_SERVICE_BUS }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
node scripts/runner.node.mjs bun
node scripts/runner.node.mjs bun --include ${{ matrix.include || '' }} --exclude ${{ matrix.exclude || '' }}
# TODO: Enable when we start running the Node.js test suite
# test-node: