Skip to content

feat(Forms): add bankAccountType prop with formatting and input masks #23313

feat(Forms): add bankAccountType prop with formatting and input masks

feat(Forms): add bankAccountType prop with formatting and input masks #23313

Workflow file for this run

name: e2e
on:
push:
branches:
- '**'
- '!**--skip-ci'
- '!**--visual-reports'
- '!wip/**'
- '!experiments/**'
- '!release'
- '!portal'
- '!beta'
- '!alpha'
pull_request:
branches:
- 'portal'
- 'release'
- 'beta'
- 'alpha'
- 'next'
types: [opened]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
GH_EMAIL: ${{ secrets.GH_EMAIL }}
GH_NAME: ${{ secrets.GH_NAME }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}
FIGMA_ICONS_FILE: ${{ secrets.FIGMA_ICONS_FILE }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }}
ALGOLIA_SEARCH_KEY: ${{ secrets.ALGOLIA_SEARCH_KEY }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
RUN_POST_BUILD: ${{ startsWith(github.ref, 'refs/heads/main') || startsWith(github.ref, 'refs/heads/v') }}
jobs:
e2e:
name: Run e2e tests
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- name: Use Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version-file: 'package.json'
- name: Use node_modules cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
id: modules-cache
with:
path: node_modules
key: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-modules-
- name: Install dependencies
run: yarn install --immutable
- name: Use Playwright cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
id: playwright-cache
with:
path: |
~/Library/Caches/ms-playwright
~/.cache/ms-playwright
%USERPROFILE%\AppData\Local\ms-playwright
key: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-playwright-${{ hashFiles('**/yarn.lock') }}
- run: yarn workspace dnb-design-system-portal playwright install --with-deps firefox
if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: yarn workspace dnb-design-system-portal playwright install-deps firefox
if: steps.playwright-cache.outputs.cache-hit == 'true'
- name: Prebuild Library
run: yarn workspace @dnb/eufemia prebuild:ci
- name: Postbuild Library
run: yarn workspace @dnb/eufemia postbuild:ci
- name: Build portal
run: yarn workspace dnb-design-system-portal build:e2e
- name: Run Playwright on Portal
run: yarn workspace dnb-design-system-portal test:e2e:portal:ci
- name: Run Playwright on Eufemia Components
run: yarn workspace @dnb/eufemia test:e2e:ci
- name: Store Playwright artifacts
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
if: failure()
with:
name: playwright-develop-artifact
path: |
./packages/dnb-design-system-portal/test-results
./packages/dnb-design-system-portal/playwright-report