Skip to content

ember exam test partitioning #5493

ember exam test partitioning

ember exam test partitioning #5493

Workflow file for this run

name: Test
on:
push:
pull_request:
types: [opened, reopened]
jobs:
build:
runs-on: [ubuntu-latest]
concurrency:
group: ${{ github.workflow }}-ci-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Setup Application
uses: ./.github/actions/setup-app
- name: Build ember app
run: npm run build:test
- name: Upload built ember app
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
test:
runs-on: [ubuntu-latest]
needs: [build]
strategy:
fail-fast: false
matrix:
tests:
- type: Unit Tests
commandArgs: --file-path='/irene/tests/unit*.js' --split=3 --parallel=3 --load-balance
- type: Acceptance Tests
commandArgs: --file-path='/irene/tests/acceptance*.js' --split=3 --parallel=3 --load-balance
- type: Integration Tests - Part 1
commandArgs: --file-path='/irene/tests/integration*.js' --split=6 --partition=1 --parallel=6 --load-balance
- type: Integration Tests - Part 2
commandArgs: --file-path='/irene/tests/integration*.js' --split=6 --partition=2 --parallel=6 --load-balance
- type: Integration Tests - Part 3
commandArgs: --file-path='/irene/tests/integration*.js' --split=6 --partition=3 --parallel=6 --load-balance
- type: Integration Tests - Part 4
commandArgs: --file-path='/irene/tests/integration*.js' --split=6 --partition=4 --parallel=6 --load-balance
- type: Integration Tests - Part 5
commandArgs: --file-path='/irene/tests/integration*.js' --split=6 --partition=5 --parallel=6 --load-balance
- type: Integration Tests - Part 6
commandArgs: --file-path='/irene/tests/integration*.js' --split=6 --partition=6 --parallel=6 --load-balance
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- uses: ./.github/actions/setup-app
- name: Run ${{ matrix.tests.type }}
run: |
npm run test:ember -- ${{matrix.tests.commandArgs}} --path=dist
- name: Job Summary
if: always()
run: |
echo "## Test Run Summary" >> $GITHUB_STEP_SUMMARY
echo "Test Type: ${{ matrix.tests.type }}" >> $GITHUB_STEP_SUMMARY
echo "Test Configuration: ${{matrix.tests.commandArgs}}" >> $GITHUB_STEP_SUMMARY