Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
cd9ff8f
chore(yarn): upgrade to yarn 4
johnayeni Oct 1, 2025
29a4753
chore(yarn): update github workflows with corepack enable command
johnayeni Oct 1, 2025
72bfe71
chore(yarn): update github workflows with corepack enable command
johnayeni Oct 1, 2025
f68dd54
chore(yarn): update yarn install scripts in github actions
johnayeni Oct 1, 2025
5f6d292
chore(yarn): update yarn install script
johnayeni Oct 1, 2025
3c580e0
chore(yarn): update build chunkSizeWarningLimit for storybook
johnayeni Oct 1, 2025
cb1c992
chore(yarn): add test match to playwright config
johnayeni Oct 1, 2025
dbf63e1
chore(yarn): update e2e workflow
johnayeni Oct 1, 2025
b033d1c
chore(yarn): update e2e workflow
johnayeni Oct 1, 2025
0c1139c
chore(yarn): update automated ally workflow
johnayeni Oct 1, 2025
b14a29f
chore(yarn): update github workflows to cache nodemodules
johnayeni Oct 1, 2025
bbdfa09
chore(yarn): cache node modules of size limit workflow
johnayeni Oct 1, 2025
35259fd
chore(github-action): simplify unit tests workflow
johnayeni Oct 1, 2025
d61b294
chore(github-action): rename workflow job
johnayeni Oct 1, 2025
21472d0
chore(github-action): cache playwright deps
johnayeni Oct 1, 2025
57b3eb0
chore(github-action): update node modules cache flow
johnayeni Oct 1, 2025
3cebd9d
chore(github-action): add node version to playwright cache
johnayeni Oct 1, 2025
3d4c599
chore(github-action): remove cache for size limit task
johnayeni Oct 1, 2025
743042e
chore(github-action): always install project dependencies when browse…
johnayeni Oct 1, 2025
eee8072
chore(github-action): always install project dependencies when browse…
johnayeni Oct 1, 2025
7018cb9
chore(github-action): always install project dependencies when browse…
johnayeni Oct 1, 2025
ee186e7
chore(github-action): make browser part of playwright cache
johnayeni Oct 1, 2025
d4f8d27
chore(github-action): install missing library for webkit playwright c…
johnayeni Oct 1, 2025
91b39e9
chore(github-action): retry tests only once on CI
johnayeni Oct 2, 2025
a26b36e
chore(github-action): update size limit workflow
johnayeni Oct 2, 2025
7d980f3
chore(playwright): retry e2e tests 2 times on CI
johnayeni Oct 2, 2025
8db3c52
chore(playwright): add cache for size limit workflow
johnayeni Oct 2, 2025
44d9e98
chore(size-limit): remove cache for size limit workflow
johnayeni Oct 2, 2025
4ee164c
chore(github-actions): remove restore keys from workflows cache
johnayeni Oct 6, 2025
1d1f68e
Merge branch 'main' into upgrade-to-yarn4
johnayeni Oct 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/.size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Node.js 22.18.0
- name: Use Node.js 22.18.0
uses: actions/setup-node@v4
with:
node-version: 22.18.0

- name: Enable Corepack
run: corepack enable

- uses: andresz1/size-limit-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
43 changes: 36 additions & 7 deletions .github/workflows/automated-a11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,45 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}


- name: Cache node modules
id: node-modules-cache
uses: actions/cache@v4
env:
cache-name: node-modules-v1
with:
path: node_modules
key: ${{ runner.os }}-cache-${{ env.cache-name }}-node-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}

- name: Enable Corepack
run: corepack enable

- name: Install Project Dependencies
run: yarn install

if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable

- name: Extract Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(jq -r '.devDependencies["@playwright/test"]' packages/e2e-playwright/package.json)" >> $GITHUB_ENV

- name: Cache Playwright
# Using a cache for the webkit binary files causes this error on subsequent runs
# /home/runner/.cache/ms-playwright/webkit-2123/minibrowser-wpe/bin/MiniBrowser: error while loading shared libraries: libwoff2dec.so.1.0.2: cannot open shared object file: No such file or directory
if: matrix.runner-browser != 'webkit'
id: playwright-cache
uses: actions/cache@v4
env:
cache-name: playwright-v1
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-cache-${{ env.cache-name }}-node-${{ matrix.node-version }}-playwright-${{ env.PLAYWRIGHT_VERSION }}-browser-${{ matrix.runner-browser }}

- name: Install Playwright Dependencies
working-directory: packages/e2e-playwright/
run: yarn install && npx playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true' || matrix.runner-browser == 'webkit'
run: npx playwright install --with-deps ${{ matrix.runner-browser }}

- name: Run Automated Accessibility Tests
run: yarn test:automated-a11y -- --project=${{ matrix.runner-browser }}
run: yarn test:automated-a11y --project=${{ matrix.runner-browser }}

- name: Archive test result artifacts
if: always()
Expand Down
42 changes: 38 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,51 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Cache node modules
id: node-modules-cache
uses: actions/cache@v4
env:
cache-name: node-modules-v1
with:
path: node_modules
key: ${{ runner.os }}-cache-${{ env.cache-name }}-node-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}

- name: Enable Corepack
run: corepack enable

- name: Install Project Dependencies
run: yarn install
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable

- name: Extract Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(jq -r '.devDependencies["@playwright/test"]' packages/e2e-playwright/package.json)" >> $GITHUB_ENV

- name: Cache Playwright
# Using a cache for the webkit binary files causes this error on subsequent runs
# /home/runner/.cache/ms-playwright/webkit-2123/minibrowser-wpe/bin/MiniBrowser: error while loading shared libraries: libwoff2dec.so.1.0.2: cannot open shared object file: No such file or directory
if: matrix.runner-browser != 'webkit'
id: playwright-cache
uses: actions/cache@v4
env:
cache-name: playwright-v1
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-cache-${{ env.cache-name }}-node-${{ matrix.node-version }}-playwright-${{ env.PLAYWRIGHT_VERSION }}-browser-${{ matrix.runner-browser }}

- name: Install Playwright Dependencies
working-directory: packages/e2e-playwright/
run: yarn install && npx playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true' || matrix.runner-browser == 'webkit'
run: npx playwright install --with-deps ${{ matrix.runner-browser }}

- name: Run E2E Tests
run: yarn test:e2e -- --project=${{ matrix.runner-browser }}
run: yarn test:e2e --project=${{ matrix.runner-browser }}

- name: Archive test result artifacts
if: always()
uses: actions/upload-artifact@v4
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ jobs:
node-version: 22.18.0
registry-url: https://registry.npmjs.org/

- run: yarn install --frozen-lockfile
- name: Enable Corepack
run: corepack enable

- name: Install Project Dependencies
run: yarn install --immutable

# Copy README to adyen-web package
- run: cp README.md packages/lib/
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ jobs:
node-version: 22.18.0
registry-url: https://registry.npmjs.org/

- run: yarn install --frozen-lockfile
- name: Enable Corepack
run: corepack enable

- name: Install Project Dependencies
run: yarn install --immutable

# Build
- name: Build
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ jobs:
with:
node-version: 22.18.0

- name: Enable Corepack
run: corepack enable

- name: Install Dependencies
run: yarn
run: yarn install --immutable

- name: Create Release Pull Request
uses: changesets/action@v1
Expand Down
28 changes: 23 additions & 5 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,33 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- run: yarn --frozen-lockfile
- name: Cache node modules
id: node-modules-cache
uses: actions/cache@v4
env:
cache-name: node-modules-v1
with:
path: node_modules
key: ${{ runner.os }}-cache-${{ env.cache-name }}-node-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}

- name: Enable Corepack
run: corepack enable

- name: Install Project Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable

- run: yarn build
- name: Build packages
run: yarn build

- run: yarn lint
- name: Lint files
run: yarn lint

- run: yarn type-check
- name: Type check files
run: yarn type-check

- run: yarn test:coverage
- name: Generate test coverage
run: yarn test:coverage

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules
dist
coverage
storybook-static
.yarn

# Playwright reports
packages/playground/playwright-report/
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"resolutions": {
"tar-fs": "^3.0.9",
"**/estimo/nanoid": "^5.1.5",
"cheerio": "1.0.0-rc.12"
}
},
"packageManager": "[email protected]"
}
4 changes: 2 additions & 2 deletions packages/e2e-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
},
"devDependencies": {
"@adyen/adyen-web-server": "1.0.0",
"@axe-core/playwright": "^4.10.1",
"@playwright/test": "1.50.0",
"cross-env": "^10.0.0",
"dotenv": "17.2.2",
"ts-loader": "9.4.4",
"typescript": "5.2.2",
"@axe-core/playwright": "^4.10.1"
"typescript": "5.2.2"
}
}
3 changes: 2 additions & 1 deletion packages/e2e-playwright/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const playgroundBaseUrl = `${protocol}://localhost:3020`;
*/
const config: PlaywrightTestConfig = {
testDir: './tests/',
testMatch: '**/*.spec.ts',
// Exclude the automated-a11y tests which run in a separate pipeline
testIgnore: ['**/automated-a11y/**'],
/* Maximum time one test can run for. */
Expand All @@ -29,7 +30,7 @@ const config: PlaywrightTestConfig = {
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 1,
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. Use default locally */
workers: process.env.CI ? 4 : undefined,

Expand Down
Loading
Loading