Skip to content

Commit 2f02386

Browse files
committed
chore: update from main
2 parents 95becdb + 9b12a70 commit 2f02386

File tree

164 files changed

+2747
-140
lines changed

Some content is hidden

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

164 files changed

+2747
-140
lines changed

.github/scripts/update-playwright.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Replace from 'replace-in-file';
22
import packageJson from '../../package.json' assert { type: 'json' };
33

4-
const oldPlaywrightVersion = '1.41.2';
4+
const oldPlaywrightVersion = 'v1.42.0';
55

66
const updatePlaywright = () => {
77
const version = packageJson.devDependencies['@playwright/test'];
@@ -19,6 +19,7 @@ const updatePlaywright = () => {
1919
to: `playwright:v${version}`,
2020
files: [
2121
'.github/workflows/02-e2e.yml',
22+
'.github/workflows/02-e2e-foundations.yml',
2223
'.github/workflows/02-e2e-showcases.yml',
2324
'e2e/Dockerfile'
2425
]
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: 🎭 Playwright E2E
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
actions: write
8+
contents: write
9+
10+
jobs:
11+
playwright-foundations:
12+
name: 🧪🎭 - foundations
13+
runs-on: ubuntu-latest
14+
container:
15+
image: mcr.microsoft.com/playwright:v1.42.0
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: 👩‍🔬 Test with Playwright 🎭
33+
working-directory: ./packages/foundations
34+
env:
35+
HOME: /root
36+
run: npm run test:e2e
37+
38+
- name: 🆙 Upload test results
39+
if: failure()
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: foundations-playwright-results
43+
path: ./packages/foundations/test-results
44+
retention-days: 30

.github/workflows/default.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
uses: ./.github/workflows/02-e2e.yml
3232
needs: [build-packages]
3333

34+
test-foundations:
35+
uses: ./.github/workflows/02-e2e-foundations.yml
36+
needs: [build-packages]
37+
3438
build-showcases:
3539
uses: ./.github/workflows/01-build-showcases.yml
3640
needs: [build-packages]
@@ -49,14 +53,22 @@ jobs:
4953
resultBuildOutputs="${{ needs.build-outputs.result }}"
5054
resultTestPackages="${{ needs.test-components.result }}"
5155
resultTestShowcases="${{ needs.test-showcases.result }}"
52-
if [[ $resultTestShowcases == "success" && $resultBuildShowcases == "success" && $resultBuildOutputs == "success" && $resultTestPackages == "success" ]]; then
56+
resultTestFoundations="${{ needs.test-foundations.result }}"
57+
if [[ $resultTestFoundations == "success" && $resultTestShowcases == "success" && $resultBuildShowcases == "success" && $resultBuildOutputs == "success" && $resultTestPackages == "success" ]]; then
5358
echo "🎉 All tests were successful."
5459
exit 0
5560
else
5661
echo "Some tests were failing."
5762
exit 1
5863
fi
59-
needs: [build-showcases, build-outputs, test-components, test-showcases]
64+
needs:
65+
[
66+
build-showcases,
67+
build-outputs,
68+
test-components,
69+
test-showcases,
70+
test-foundations
71+
]
6072

6173
deploy:
6274
uses: ./.github/workflows/03-deploy-gh-pages.yml

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
uses: ./.github/workflows/02-e2e.yml
3737
needs: [build-packages]
3838

39+
test-foundations:
40+
uses: ./.github/workflows/02-e2e-foundations.yml
41+
needs: [build-packages]
42+
3943
test-showcases:
4044
uses: ./.github/workflows/02-e2e-showcases.yml
4145
needs: [build-showcases]
@@ -45,7 +49,14 @@ jobs:
4549
steps:
4650
- name: 🎉 Checks done
4751
run: echo "🎉 All builds were successful."
48-
needs: [test-components, build-outputs, build-showcases, test-showcases]
52+
needs:
53+
[
54+
test-components,
55+
build-outputs,
56+
build-showcases,
57+
test-showcases,
58+
test-foundations
59+
]
4960

5061
deploy:
5162
uses: ./.github/workflows/03-deploy-gh-pages.yml

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ packages/components/src/**/*.css.map
4141
/output/docs.json
4242
showcases/patternhub/public/iframe-resizer/*
4343

44-
/showcases/**/test-results/
44+
**/test-results/
4545

4646
/__snapshots__/**/*-win32.png
4747
/packages/foundations/assets/icons/functional/tmp/

.jscpd.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
"**/**config.ts",
4747
"**/navigation-items.ts",
4848
"showcases/angular-showcase/.angular/cache",
49-
"packages/foundations/assets/icons/functional/fonts/**"
49+
"packages/foundations/assets/icons/functional/fonts/**",
50+
"**/playwright-report/**",
51+
"packages/foundations/src"
5052
],
5153
"absolute": true
5254
}
-301 Bytes
-379 Bytes
-75 Bytes
-22 Bytes

0 commit comments

Comments
 (0)