Repository navigation
Add GitHub Actions CI workflow for lint and tests (#79) - #447
Conversation
5831bff to
f846c70
Compare
9a3ca39 to
47c0806
Compare
f2ad5c9 to
b224c69
Compare
b224c69 to
53cce11
Compare
49924b9 to
fa97eea
Compare
d1804e6 to
e501cc5
Compare
e501cc5 to
20e83f2
Compare
| @@ -0,0 +1,937 @@ | |||
| # Add a GitHub Actions workflow that lints and tests every commit and pull request | |||
There was a problem hiding this comment.
@stevejalim This seems like A LOT for the amount of work that was actually done. Is this the kind of exec plan you expect to see or do I need to get it to be less verbose. (Do I really need to know it rebased?)
There was a problem hiding this comment.
No, I don't think we need to knoiw it rebased and it's worth adding something like "don't log routine development operations in the execplan. Record consequential decisions and surprises" into https://github.com/mozilla/ensemble/blob/main/docs/execplans/README.md or - perhaps better - https://github.com/mozilla/ensemble/blob/main/.claude/skills/execplans/references/PLANS.md
20e83f2 to
0dbdd18
Compare
Runs lint, the Vitest unit tests, and the Playwright end-to-end tests on every push to main and every pull request. Stops checking external links in the Playwright suite, because third-party bot walls fail them on GitHub's runners.
ec5e797 to
95f3925
Compare
| test('All links work', async ({ page }) => { | ||
| await expect(page.locator('#contact')).toBeVisible(); | ||
| await linksWork(page, '#contact a'); | ||
| }); |
There was a problem hiding this comment.
I trust you, but am curious why we are dropping this test
There was a problem hiding this comment.
Ah it's becuase loadsSuccessfully has changed
| Issue #79 (<https://github.com/mozilla/ensemble/issues/79>) was opened in 2018, when a pull request | ||
| got no CI feedback. It asks for CI that lints and runs the tests on every commit. The repository | ||
| once had CircleCI, but it was turned off in February 2018 (`433a465`), and nothing replaced it. | ||
| There is no `.github/` directory today. |
| and `#not-found` does not. For an external link, it opens the URL in a new browser page and expects | ||
| HTTP 200, with three attempts and backoff, plus a redirect-only special case for | ||
| `donate.mozilla.org`. `footer.spec.js` and the "All links work" test in `contact.spec.js` check only |
stevejalim
left a comment
There was a problem hiding this comment.
LGTM - i've DMed two robot insights if you want
There was a problem hiding this comment.
Can we rename this to not have the -shorter part, to bring it in line with what PLAN.md asks for
* Revise execplan instructions * Add GitHub Actions CI workflow for lint and tests (#79) Runs lint, the Vitest unit tests, and the Playwright end-to-end tests on every push to main and every pull request. Stops checking external links in the Playwright suite, because third-party bot walls fail them on GitHub's runners. * Remove a link test that can no longer fail, and a stale PLANS.md claim (#79) * Compile CSS and bound job time in CI, and tidy link tests (#79)
* Revise execplan instructions * Add GitHub Actions CI workflow for lint and tests (#79) Runs lint, the Vitest unit tests, and the Playwright end-to-end tests on every push to main and every pull request. Stops checking external links in the Playwright suite, because third-party bot walls fail them on GitHub's runners. * Remove a link test that can no longer fail, and a stale PLANS.md claim (#79) * Compile CSS and bound job time in CI, and tidy link tests (#79)



One-line summary
Run lint, the Vitest unit tests, and the Playwright end-to-end tests on every push to
mainand every pull request.Significant changes and points to review
Issue / Bugzilla link
#79
Testing