Skip to content

Commit 11cc191

Browse files
committed
Massage all .github action workflows.
1 parent 57501ff commit 11cc191

File tree

4 files changed

+34
-22
lines changed

4 files changed

+34
-22
lines changed

.github/workflows/deploy.yaml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
branches: [main]
77
paths:
8+
- components
9+
- projects
810
- simulator
911
- web
1012

@@ -13,11 +15,10 @@ jobs:
1315
runs-on: ubuntu-latest
1416

1517
steps:
16-
- uses: actions/checkout@v3
17-
- name: Use Node.js 20
18-
uses: actions/setup-node@v3
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
1920
with:
20-
node-version: 20
21+
node-version: lts/*
2122

2223
- name: Cache node modules
2324
id: cache-npm
@@ -30,7 +31,21 @@ jobs:
3031
key: ${{ hashFiles('**/package-lock.json') }}
3132

3233
- name: Install
33-
run: npm install
34+
run: npm clean-install
35+
36+
- name: CI
37+
run: |
38+
npm run CI
39+
npx playwright install --with-deps
40+
npx playwright test
41+
env:
42+
CI: true
43+
- uses: actions/upload-artifact@v4
44+
if: always()
45+
with:
46+
name: playwright-report
47+
path: playwright-report/
48+
retention-days: 30
3449

3550
- name: CD
3651
run: |

.github/workflows/extension.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
branches: [main]
77
paths:
8+
- components
9+
- projects
810
- simulator
911
- extension
1012

@@ -30,7 +32,7 @@ jobs:
3032
key: ${{ hashFiles('**/package-lock.json') }}
3133

3234
- name: Install
33-
run: npm install
35+
run: npm clean-install
3436

3537
- name: CD
3638
run: |

.github/workflows/playwright.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Playwright Tests
22
on:
3+
workflow_dispatch:
34
push:
45
branches: [main]
56
pull_request:
@@ -13,9 +14,6 @@ jobs:
1314
- uses: actions/setup-node@v4
1415
with:
1516
node-version: lts/*
16-
- name: Install dependencies
17-
run: npm ci
18-
1917
- name: Cache node modules
2018
id: cache-npm
2119
uses: actions/cache@v3
@@ -31,18 +29,17 @@ jobs:
3129
continue-on-error: true
3230
run: npm list
3331

34-
- name: Install
35-
run: npm install
32+
- name: Install dependencies
33+
run: npm clean-install
3634

3735
- name: CI
38-
run: npm run ci
36+
run: |
37+
npm run ci
38+
npx playwright install --with-deps
39+
npx playwright test
3940
env:
4041
CI: true
4142

42-
- name: Install Playwright Browsers
43-
run: npx playwright install --with-deps
44-
- name: Run Playwright tests
45-
run: npx playwright test
4643
- uses: actions/upload-artifact@v4
4744
if: always()
4845
with:

.github/workflows/test.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@ name: Run Workspace Tests
22

33
on:
44
pull_request:
5-
branches: ["main", "pwa-main"]
5+
branches: ["main"]
66

77
jobs:
88
all:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v3
13-
14-
- name: Use Node.js 20
15-
uses: actions/setup-node@v3
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1614
with:
17-
node-version: 20
15+
node-version: lts/*
1816

1917
- name: Cache node modules
2018
id: cache-npm

0 commit comments

Comments
 (0)