From eada2a1e8726928d290583159d4591fefd20def2 Mon Sep 17 00:00:00 2001 From: Amr Ahmed Taher Mohamed <99883674+taheramr@users.noreply.github.com> Date: Mon, 11 Sep 2023 12:32:17 +0200 Subject: [PATCH] feat: Add jest shards in a11y tests (#57) --- workflows/dry-run.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workflows/dry-run.yml b/workflows/dry-run.yml index 1bec6ca..85de4d0 100644 --- a/workflows/dry-run.yml +++ b/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