Skip to content

fix(masthead-v2): ensure L1 dropdown targets exist (#11254) #4400

fix(masthead-v2): ensure L1 dropdown targets exist (#11254)

fix(masthead-v2): ensure L1 dropdown targets exist (#11254) #4400

name: percy-update-base
on:
push:
branches: [ main, release/*, feat/cwc-v2, fix/content-updates, feat/masthead-v2-dev ]
concurrency:
group: percy-update-base-${{ github.ref }}
cancel-in-progress: true
jobs:
react-storybook:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: ['18.x']
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Build
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-services-store --ignore @carbon/ibmdotcom-web-components build
- name: Set env vars
uses: ./.github/actions/set-dotenv
with:
env-file: packages/react/.env
env:
KALTURA_PARTNER_ID: ${{ secrets.KALTURA_PARTNER_ID }}
KALTURA_UICONF_ID: ${{ secrets.KALTURA_UICONF_ID }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_REACT }}
- name: Run percy storybook
run: yarn visual-snapshot
working-directory: packages/react
react-storybook-e2e:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [ '18.x' ]
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Build
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-services-store --ignore @carbon/ibmdotcom-web-components build
- name: Set env vars
uses: ./.github/actions/set-dotenv
with:
env-file: packages/react/.env
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_REACT_E2E }}
- name: Run e2e tests
run: yarn build-storybook && yarn test:e2e-storybook:test
working-directory: packages/react
web-components:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: ['18.x']
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Build
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-react build
- name: Set env vars
uses: ./.github/actions/set-dotenv
with:
env-file: packages/web-components/.env
env:
KALTURA_PARTNER_ID: ${{ secrets.KALTURA_PARTNER_ID }}
KALTURA_UICONF_ID: ${{ secrets.KALTURA_UICONF_ID }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_WEBCOMPONENTS }}
- name: Run percy storybook
run: yarn visual-snapshot
working-directory: packages/web-components
carbon-web-components:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: ['18.x']
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Build
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-react --stream --ignore @carbon/ibmdotcom-web-components --ignore @carbon/ibmdotcom-styles --ignore @carbon/ibmdotcom-services-store --ignore @carbon/ibmdotcom-utilities --ignore @carbon/ibmdotcom-services build
- name: Set env vars
uses: ./.github/actions/set-dotenv
with:
env-file: packages/carbon-web-components/.env
env:
KALTURA_PARTNER_ID: ${{ secrets.KALTURA_PARTNER_ID }}
KALTURA_UICONF_ID: ${{ secrets.KALTURA_UICONF_ID }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_CARBONWEBCOMPONENTS }}
- name: Run percy storybook
run: yarn visual-snapshot
working-directory: packages/carbon-web-components