Merge c49334a3cce2754af28d0d47168357ce6a8163b2 into main #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: percy-update-base | |
on: | |
push: | |
branches: [ main, release/v2*, feat/* ] | |
concurrency: | |
group: percy-update-base-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
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@v4 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v4 | |
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 build-storybook && yarn visual-snapshot | |
working-directory: packages/web-components | |