From 46769ad1e0b8106216bab65e21a7fb5409ce9d5e Mon Sep 17 00:00:00 2001 From: Amr Mohamed Date: Thu, 7 Sep 2023 11:09:16 +0200 Subject: [PATCH] feat: Add jest shards in a11y tests --- .github/workflows/dry-run.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml index 1bec6ca..85de4d0 100644 --- a/.github/workflows/dry-run.yml +++ b/.github/workflows/dry-run.yml @@ -164,6 +164,9 @@ jobs: a11yTest: name: Components accessibility tests runs-on: ubuntu-latest + strategy: + matrix: + shard: [1, 2, 3, 4, 5, 6] needs: - buildComponents steps: @@ -178,7 +181,7 @@ jobs: - name: Unpack components artifacts run: tar -xzf components-full.tgz - name: Accessibility tests - run: npm run test:a11y + run: npm run test:a11y -- --shard=${{ matrix.shard }}/${{ strategy.job-total }} demosTest: name: Demos tests