Skip to content

Commit e947d5e

Browse files
committed
chore: update from main
2 parents 4f3029e + f41abe8 commit e947d5e

File tree

135 files changed

+1212
-1076
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+1212
-1076
lines changed

.github/actions/npm-cache/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
- name: 🆙 Setup node
2121
# pick the Node version to use and install it
2222
# https://github.com/actions/setup-node
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ inputs.nodeVersion }}
2626

@@ -31,7 +31,7 @@ runs:
3131
npm --version
3232
3333
- name: 🆒 Init Cache
34-
uses: actions/cache@v3
34+
uses: actions/cache@v4
3535
id: "cache"
3636
with:
3737
path: ${{ inputs.nodeModulesPath }}

.github/scripts/update-playwright.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const updatePlaywright = () => {
2121
'.github/workflows/02-e2e.yml',
2222
'.github/workflows/02-e2e-foundations.yml',
2323
'.github/workflows/02-e2e-showcases.yml',
24+
'.github/workflows/02-e2e-regenerate.yml',
2425
'e2e/Dockerfile'
2526
]
2627
},
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: 🎭 Playwright E2E
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
actions: write
8+
contents: write
9+
10+
jobs:
11+
regenerate-snapshots:
12+
name: 🧪🎭 - Regenerate snapshots
13+
runs-on: ubuntu-latest
14+
container:
15+
image: mcr.microsoft.com/playwright:v1.42.1
16+
steps:
17+
- name: ⏬ Checkout repo
18+
uses: actions/checkout@v4
19+
20+
- name: 🔄 Init Cache
21+
uses: ./.github/actions/npm-cache
22+
23+
- name: 📲 Install esbuild (binary workaround)
24+
run: npm i -D esbuild-linux-64
25+
26+
- name: ⏬ Download foundations build
27+
uses: actions/download-artifact@v4
28+
with:
29+
name: db-ui-foundations-build
30+
path: packages/foundations/build
31+
32+
- name: ⏬ Download output
33+
uses: actions/download-artifact@v4
34+
with:
35+
name: db-ui-output
36+
path: output
37+
38+
- name: ⏬ Download components styles build
39+
uses: actions/download-artifact@v4
40+
with:
41+
name: db-ui-components-build
42+
path: packages/components/build
43+
44+
- name: ⏬ Download showcases
45+
uses: actions/download-artifact@v4
46+
with:
47+
name: db-ui-showcases
48+
path: build-showcases
49+
50+
- name: 👩‍🔬 Generate snapshots 🎭
51+
env:
52+
HOME: /root
53+
run: |
54+
npm run regenerate:screenshots --workspace=@db-ui/react-components
55+
npm run regenerate:screenshots --workspace=@db-ui/foundations
56+
npm run regenerate:screenshots --workspace=react-showcase
57+
58+
- name: 🆙 Upload snapshots
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: __snapshots__
62+
path: ./__snapshots__
63+
retention-days: 30

.github/workflows/99-auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- name: ⏬ Dependabot metadata
1212
id: metadata
13-
uses: dependabot/fetch-metadata@v1
13+
uses: dependabot/fetch-metadata@v2
1414
with:
1515
github-token: "${{ secrets.GITHUB_TOKEN }}"
1616

.github/workflows/default.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
uses: ./.github/workflows/02-e2e-showcases.yml
4444
needs: [build-showcases]
4545

46+
regenerate-snapshots:
47+
if: always() && (needs.test-components.result == 'failure' || needs.test-foundations.result == 'failure' || needs.test-showcases.result == 'failure')
48+
uses: ./.github/workflows/02-e2e-regenerate.yml
49+
needs: [test-components, test-showcases, test-foundations]
50+
4651
checks-done:
4752
if: ${{ always() }}
4853
runs-on: ubuntu-latest
-4.85 KB
-6.56 KB
-5.46 KB
-4.74 KB
-4.65 KB

0 commit comments

Comments
 (0)