Skip to content

Commit

Permalink
Create and Store Test Execution File
Browse files Browse the repository at this point in the history
This makes it possible to reply the test order locally and will be very
useful if we have any flaky tests.
  • Loading branch information
jrjohnson committed Jul 14, 2024
1 parent 6780f9d commit 9f7ed84
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ jobs:
- name: Install Dependencies
run: pnpm install
- name: Run Tests
run: pnpm --filter ${{matrix.workspace}} exec ember exam --parallel=3 --load-balance
run: pnpm --filter ${{matrix.workspace}} exec ember exam --parallel=3 --load-balance --write-execution-file
- uses: actions/upload-artifact@v4
if: failure()
with:
name: replay-${{matrix.workspace}}-test.json
path: ./packages/${{matrix.workspace}}/test-execution-*.json
retention-days: 7

build:
name: ${{matrix.workspace}} Build (${{ matrix.node-version }})
Expand Down Expand Up @@ -163,7 +169,13 @@ jobs:
firefox-version: ${{ matrix.firefox-version }}
- run: firefox --version
- name: test
run: pnpm --filter ${{matrix.workspace}} exec ember exam --parallel=3 --load-balance --launch=Firefox
run: pnpm --filter ${{matrix.workspace}} exec ember exam --parallel=3 --load-balance --write-execution-file --launch=Firefox
- uses: actions/upload-artifact@v4
if: failure()
with:
name: replay-${{matrix.workspace}}-firefox-${{ matrix.firefox-version }}.json
path: ./packages/${{matrix.workspace}}/test-execution-*.json
retention-days: 7

test-with-embroider:
name: ${{matrix.workspace}} Test With Embroider
Expand All @@ -190,7 +202,13 @@ jobs:
- name: Install Dependencies
run: pnpm install
- name: Run Tests
run: pnpm --filter ${{matrix.workspace}} exec ember exam --parallel=3 --load-balance
run: pnpm --filter ${{matrix.workspace}} exec ember exam --parallel=3 --load-balance --write-execution-file
- uses: actions/upload-artifact@v4
if: failure()
with:
name: replay-${{matrix.workspace}}-embroider.json
path: ./packages/${{matrix.workspace}}/test-execution-*.json
retention-days: 7

build-with-embroider:
name: ${{matrix.workspace}} Build With Embroider
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ coverage/
npm-debug.log*
yarn-error.log

packages/**/test-execution-*.json

0 comments on commit 9f7ed84

Please sign in to comment.