~/talk

Front End Testing with GitHub Actions

Talkat NDC London 2024 · 2024-01-29..02-02· [testing, developer-experience]
slides:none on file

GitHub Actions workflows build a live front end preview using a custom Netlify CLI script, capture the preview URL and base64-encode twice to avoid GitHub masking, then run Lighthouse and Playwright against that URL. Steps include checkout, setup Node, npm install, deploy, decode the URL, run Lighthouse (uploads Lighthouse HTML report as an artifact) and Playwright (uploads test artifacts), and add a Netlify deploy preview comment to the PR. A separate push-triggered workflow publishes to production and the pipelines produce reports and PR comments as expected.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54Front-end testing importance
  3. 4:28GitHub Actions automation benefits
  4. 6:36GitHub Actions workflows
  5. 9:51PR-triggered workflows
  6. 10:34Jobs and steps in workflows
  7. 14:48Live preview deployment
  8. 17:36Custom deployment scripts
  9. 18:58PR comments with URLs
  10. 20:45Multi-platform deployment
  11. 21:48Lighthouse performance tests
  12. 23:14Configuring dependent jobs for testing
  13. 26:46Secret detection in Actions
  14. 27:49URL encoding/decoding
  15. 30:00Playwright end-to-end tests
  16. 33:11Finalizing workflow
  17. 33:34Production deployment automation
  18. 36:24TODO to GitHub issues
  19. 39:15Summary
  20. 40:42Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.