You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A starter/test automation repository using Playwright with TypeScript. This project provides patterns, recommended configuration, and examples for end-to-end web testing with Playwright test runner, TypeScript, and modern CI practices.
10
+
This repository serves as a **practical demonstration** of implementing Playwright test automation with GitHub Actions CI/CD. Created as companion code for my article series [ "Playwright testing with GitHub Actions"](https://nickisnotunique.substack.com/profile/posts). This project provides patterns, recommended configuration, and examples for end-to-end web testing with Playwright test runner, TypeScript, and modern CI practices.
7
11
8
12
## Overview
9
13
@@ -15,6 +19,14 @@ This repository demonstrates a pragmatic setup for automated UI tests using Play
15
19
16
20
---
17
21
22
+
## Key Features
23
+
24
+
-**CI/CD Workflows**: Full suite, auto smoke tests, manual smoke runs
25
+
-**Optimized Caching**: Yarn cache for faster CI runs
26
+
-**Slack Integration**: Automated notifications for test results
27
+
28
+
---
29
+
18
30
## Prerequisites
19
31
20
32
- Node.js (~22.20.0)
@@ -89,6 +101,10 @@ This project uses GitHub Actions for continuous integration.
89
101
Available pipelines:
90
102
91
103
### `playwright.yml` - Playwright Tests
104
+
#### Summary:
105
+
- Runs on every push to main/master
106
+
- Executes complete test coverage
107
+
- Ideal for: Release validation, nightly builds
92
108
93
109
**Triggers:**
94
110
- Push to `main` or `master` branches
@@ -112,6 +128,11 @@ Available pipelines:
112
128
---
113
129
114
130
### `auto-simple-suite.yaml` - Auto run simple suite
131
+
#### Summary:
132
+
- Triggers on PRs to main
133
+
- Runs critical path tests only
134
+
- Includes Slack notifications
135
+
- Ideal for: PR validation, quick feedback loops
115
136
116
137
**Triggers:**
117
138
- Pull Request to `main` branch
@@ -151,6 +172,10 @@ This workflow consists of **3 jobs**:
151
172
---
152
173
153
174
### `run-simple-suite.yaml` - Run simple suite
175
+
#### Summary:
176
+
- Manually triggered via GitHub UI
177
+
- No notifications (focused testing)
178
+
- Ideal for: Ad-hoc testing, debugging, demos
154
179
155
180
**Triggers:**
156
181
- Manual run only via workflow_dispatch
@@ -174,6 +199,22 @@ This workflow consists of **3 jobs**:
0 commit comments