Skip to content

Commit 70380e6

Browse files
Update CI 3
1 parent 7d9478b commit 70380e6

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,25 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
# Cache node_modules to speed up subsequent runs
18-
- name: Cache node_modules
19-
uses: actions/cache@v3
20-
with:
21-
path: node_modules
22-
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
23-
restore-keys: |
24-
${{ runner.os }}-node-modules-
17+
- name: Install xvfb
18+
run: sudo apt-get install -y xvfb
19+
2520
- uses: actions/setup-node@v4
2621
with:
27-
node-version: lts/* # Or specify a specific version like 18 or 20
22+
node-version: lts/*
2823

2924
- name: Install dependencies
30-
run: npm ci # Ensure your package.json and package-lock.json are in sync
25+
run: npm ci
3126

3227
- name: Install Playwright Browsers
3328
run: npx playwright install --with-deps
3429

3530
- name: Run Playwright tests
36-
run: npx playwright test
31+
run: xvfb-run npx playwright test # Run the tests with xvfb
3732

3833
- uses: actions/upload-artifact@v4
3934
if: ${{ !cancelled() }}
4035
with:
4136
name: playwright-report
4237
path: reports/playwright-report/
43-
retention-days: 30
38+
retention-days: 30

tests/data/LoginData.xlsx

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)