File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Playwright Tests
2
+ on :
3
+ push :
4
+ branches : [ main, master ]
5
+ pull_request :
6
+ branches : [ main, master ]
7
+ jobs :
8
+ test :
9
+ timeout-minutes : 60
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : actions/setup-node@v4
14
+ with :
15
+ node-version : 18
16
+ - name : Install dependencies
17
+ run : npm ci
18
+ - name : Install Playwright Browsers
19
+ run : npx playwright install --with-deps
20
+ - name : Run Playwright tests
21
+ run : npx playwright test
22
+ - uses : actions/upload-artifact@v4
23
+ if : ${{ !cancelled() }}
24
+ with :
25
+ name : playwright-report
26
+ path : playwright-report/
27
+ retention-days : 30
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export default defineConfig({
27
27
webServer : {
28
28
command : 'npx nx serve dot' ,
29
29
url : 'http://localhost:4200' ,
30
- reuseExistingServer : ! process . env . CI ,
30
+ reuseExistingServer : ! process . env [ 'CI' ] ,
31
31
cwd : workspaceRoot ,
32
32
} ,
33
33
projects : [
You can’t perform that action at this time.
0 commit comments