Skip to content

feat(Chip): allow using badge in selectable chips #7299

feat(Chip): allow using badge in selectable chips

feat(Chip): allow using badge in selectable chips #7299

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
merge_group:
branches: [master]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container: telefonica/web-builder:chromium93.0.4577-1.2.4
steps:
- uses: actions/checkout@v3
- name: Install dependencies
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
run: yarn install --immutable --immutable-cache
- run: yarn lint
- run: yarn prettier-check
- run: yarn circular-dependencies
- run: yarn build
- run: yarn ts-check
- run: yarn test --ci
- run: NO_BUILD=true yarn test-ssr --ci
- uses: actions/upload-artifact@v3
if: always()
with:
name: failed-screenshots
path: src/**/__diff_output__/*-diff.png
build-acceptance:
runs-on: ubuntu-latest
container: telefonica/web-builder:chromium93.0.4577-1.2.4
strategy:
matrix:
shard: [1, 2, 3]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install dependencies
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
run: yarn install --immutable --immutable-cache
- run: yarn storybook-static
- run: yarn test-acceptance --ci --shard=${{ matrix.shard }}/${{ strategy.job-total }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: failed-screenshots
path: src/**/__diff_output__/*-diff.png
build-upload-failed-screenshots:
runs-on: ubuntu-latest
container: telefonica/web-builder:chromium93.0.4577-1.2.4
needs: [build, build-acceptance]
if: '!cancelled()'
steps:
- uses: actions/checkout@v3
- name: Install dependencies
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
run: yarn install --immutable --immutable-cache
- if: needs.build.result == 'failure' || needs.build-acceptance.result == 'failure'
uses: actions/download-artifact@v3
with:
name: failed-screenshots
path: src/
- name: 'Upload failed screenshot diffs'
uses: './.github/actions/upload-failed-screenshots'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
azure-account-name: ${{ secrets.AZURE_ACCOUNT_NAME }}
azure-account-key: ${{ secrets.AZURE_ACCOUNT_KEY }}
###