GitHub Actions Matrix in 75 Seconds (+ Playwright Shards)
A 75-second GitHub Actions matrix tutorial: run every OS × browser combo from one job, then split your Playwright suite into 4 shards with one merged report. 📢 TestMu AI HyperExecute is an AI-native test orchestration cloud platform that runs your end-to-end tests quickly, with just-in-time infrastructure, smart orchestration and detailed real-time logs. What you'll learn • matrix basics: one job → every OS × browser combo • exclude (a partial match is enough) and include (runs after exclude, can add a brand-new combo) • fail-fast (true by default) and max-parallel • Playwright --shard with strategy.job-total, plus merge-reports for one HTML report • Next step: let HyperExecute autosplit place the tests for you Chapters 00:00 One job, every OS and browser 00:13 exclude, include and fail-fast 00:33 Sharding and merged reports 00:51 Let HyperExecute place tests (autosplit) 01:05 Cheat sheet Complete workflow (.github/workflows/e2e.yml) Needs a playwright.config.ts with projects named chromium, firefox and webkit, and reporter: process.env.CI ? 'blob' : 'html'. Lint-clean with actionlint; run it once in your repo before relying on it. Run it on HyperExecute: https://www.testmuai.com/hyperexecute-github-actions/ HyperExecute in GitHub Actions (docs): https://www.testmuai.com/support/docs/github-actions-with-hyperexecute/ Sources GitHub matrix docs: https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations Playwright sharding: https://playwright.dev/docs/test-sharding TestMu AI (formerly LambdaTest): https://testmuai.com #GitHubActions #Playwright #TestAutomation




Join the discussion
Have something to add?
Sign in to reply, follow this thread, and earn XP when your answer helps someone.