Skip to content

Commit

Permalink
Use a matrix strategy to run exam partitions
Browse files Browse the repository at this point in the history
This will run partitions and parallel only after linting passes.
  • Loading branch information
DingoEatingFuzz committed Jun 20, 2023
1 parent 488ec1a commit 14c768f
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/test-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
- 'website/**'

jobs:
test-ui:
lint:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
Expand All @@ -47,12 +47,29 @@ jobs:
run: cd ui && yarn run lint:js
- name: lint:hbs
run: cd ui && yarn run lint:hbs
- name: Ember tests
tests:
needs:
- lint
strategy:
matrix:
split: [4]
partition: [1, 2, 3, 4]
uses: ./.github/workflows/_ember-exam.yml
with:
partition: ${{ matrix.partition }}
split: ${{ matrix.split }}
finalize:
runs-on: ubuntu-latest
timeout-minutes: 30
needs:
- tests
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: yarn install
run: cd ui && yarn install --frozen-lockfile
- name: finalize
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
run: mkdir -p /tmp/test-reports && cd ui && yarn exam
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
path: "/tmp/test-reports"
run: cd ui && yarn percy -- build:finalize
permissions:
contents: read

0 comments on commit 14c768f

Please sign in to comment.