Skip to content

Commit e3a1265

Browse files
authored
Aktualisieren von test.yml
1 parent cf5f88c commit e3a1265

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
name: Playwright Test
2+
23
on:
34
workflow_dispatch:
45
push:
5-
tags:
6-
- v*
7-
branches: [ main ]
6+
tags:
7+
- v*
8+
branches: [main]
89
pull_request:
9-
branches: [ main ]
10+
branches: [main]
1011

1112
jobs:
1213
build:
1314
strategy:
15+
fail-fast: false
1416
matrix:
1517
os: [macos-latest, windows-latest, ubuntu-latest]
1618
node-version: [20.x, 22.x]
@@ -19,29 +21,29 @@ jobs:
1921
runs-on: ${{ matrix.os }}
2022

2123
steps:
22-
- name: Checkout repository
23-
uses: actions/checkout@v4
24-
25-
- name: Install Go
26-
uses: actions/setup-go@v5
27-
with:
28-
go-version: ">1.0.0"
29-
30-
- name: Setup Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v4
32-
with:
33-
node-version: ${{ matrix.node-version }}
34-
cache: 'npm'
35-
cache-dependency-path: '**/package-lock.json'
36-
37-
- name: Perform clean install of npm
38-
run: npm ci
39-
40-
- name: Playwright install
41-
run: npx install playwright
42-
43-
- name: Run tests
44-
run: npm run test
45-
46-
- name: Run Playwright tests
47-
run: npm run test:playwright
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 1 # Fetch only the latest commit for faster builds
28+
29+
- name: Install Go
30+
uses: actions/setup-go@v5
31+
with:
32+
go-version: ">1.0.0"
33+
cache: true
34+
35+
- name: Setup Node.js ${{ matrix.node-version }}
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: ${{ matrix.node-version }}
39+
cache: 'npm'
40+
cache-dependency-path: '**/package-lock.json'
41+
42+
- name: Perform clean install of npm
43+
run: npm ci
44+
45+
- name: Run tests
46+
run: npm run test
47+
48+
- name: Run Playwright tests
49+
run: npm run test:playwright

0 commit comments

Comments
 (0)