Merge 32f5f360c1c5fa7d0d78dbc2ee0e9ccc00ba0e35 into main #5785
This file contains hidden or 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-latest | |
| strategy: | |
| matrix: | |
| node-version: ['18.x'] | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - name: Use Node.js 18.x | |
| uses: actions/setup-node@v7 | |
| 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 | |