Skip to content

Commit 3011f56

Browse files
Update files
1 parent efd1aa0 commit 3011f56

File tree

2 files changed

+38
-42
lines changed

2 files changed

+38
-42
lines changed

.github/workflows/github-actions-after-push.yml

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,22 @@ on:
55
- develop
66
jobs:
77
e2e-tests:
8-
runs-on: ubuntu-latest # or macos-latest, windows-latest
9-
8+
timeout-minutes: 60
9+
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
1313
with:
14-
ref: develop
15-
16-
- name: Install node
17-
uses: actions/setup-node@v4
18-
with:
19-
node-version: '20'
20-
21-
- name: Install playwright dependencies
22-
run: npx playwright install --with-deps chromium
23-
14+
node-version: lts/*
2415
- name: Install dependencies
25-
run: npm install
26-
27-
- name: Install browsers
28-
run: npm i playwright-chromium
29-
30-
- name: Run tests
31-
run: npx playwright test
16+
run: npm ci
17+
- name: Install Playwright Browsers
18+
run: npx playwright install --with-deps
19+
- name: Run Playwright tests
20+
run: npx playwright test
21+
- uses: actions/upload-artifact@v4
22+
if: ${{ !cancelled() }}
23+
with:
24+
name: playwright-report
25+
path: playwright-report/
26+
retention-days: 30
Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
name: GitHub Actions Manually
2-
on: [workflow_dispatch]
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [main, master]
5+
pull_request:
6+
branches: [main, master]
37
jobs:
4-
e2e-tests:
5-
runs-on: ubuntu-latest # or macos-latest, windows-latest
6-
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
711
steps:
8-
- name: Checkout
9-
uses: actions/checkout@v2
10-
11-
- name: Install node
12-
uses: actions/setup-node@v4
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1314
with:
14-
node-version: "20"
15-
16-
- name: Install playwright dependencies
17-
run: npx playwright install --with-deps chromium
18-
15+
node-version: lts/*
1916
- name: Install dependencies
20-
run: npm install
21-
22-
- name: Install browsers
23-
run: npm i playwright-chromium
24-
25-
- name: Run tests
17+
run: npm ci
18+
- name: Install Playwright Browsers
19+
run: npx playwright install --with-deps
20+
- name: Run Playwright tests
2621
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

0 commit comments

Comments
 (0)