- Latest non-bot changes landed on Nov 15, 2023 (commits by
agoldisthat day). - There are later commits by dependabot[bot] (automated), e.g. Jul 22, 2025, which are excluded per your rule.
An example project showing how to run Playwright tests on AWS CodeBuild (including CodeBuild batch/matrix builds) and report results to Currents using the Currents Playwright reporter (@currents/playwright).
- Install & prep
- Uses Node + Playwright; installs deps via
npm ci.
- Uses Node + Playwright; installs deps via
- Configure Currents
- Provide
CURRENTS_RECORD_KEY(recommended via AWS Secrets Manager in CodeBuild).
- Provide
- Run in CodeBuild as a matrix
buildspec.ymlruns a shard per worker using--shard $WORKER/3and sets a CI build id.
- Playwright config
- Uses a shared config (
pw.config.shared.ts) that setstestDirto./basic, configures artifacts, and starts a local web server for tests.
- Uses a shared config (
- Reporting
playwright.config.reporter.tswires the Currents reporter, andpackage.jsonincludes@currents/playwright.
- AWS CodeBuild setup example
buildspec.ymldemonstrating CodeBuild batch/matrix workers + sharding.aws-project-config-output.json(sample project configuration output).
- Playwright + Currents reporter setup
playwright.config.reporter.ts(Currents reporter configuration).pw.config.shared.ts(shared Playwright settings, artifacts, web server, testDir).basic/tests directory referenced by config.
- Local CodeBuild agent run
- README includes steps and references a helper script for local runs using the CodeBuild local agent image.
- Fix a README link inconsistency
- README links
buildspec.ymlto a different repo (currents-dev/aws-codebuild-example) instead of this repo. (Small but confusing.)
- README links
- Add a “copy/paste Quickstart”
- Minimal vars (
CURRENTS_RECORD_KEY, project id), exact CodeBuild batch settings, and the expected command line for sharding and CI build id.
- Minimal vars (
- Add
.env.example/codebuild.env.example- Show the minimal env needed to run locally (even if real key should be injected via Secrets Manager in CI).
- Add a short “Troubleshooting” section
- Missing Playwright deps on Linux images, shard count mismatch, CI build id collisions, and where artifacts are stored.
- Make
buildspec.ymleasier to skim- Add comments explaining the matrix variable (
WORKER) and the shard formula, plus a note on changing worker count.
- Add comments explaining the matrix variable (
- README is present and explains the intent; code confirms key wiring:
--shard $WORKER/3in CodeBuild.testDir: './basic'and localwebServerusage.- Currents Playwright reporter dependency and config file.