feat(Drawer): new component #8300
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
# 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@v4 | |
- 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@v4 | |
if: always() | |
with: | |
name: failed-screenshots-ssr | |
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@v4 | |
- 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@v4 | |
if: always() | |
with: | |
name: failed-screenshots-${{ matrix.shard }} | |
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@v4 | |
- 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@v4 | |
with: | |
pattern: failed-screenshots-* | |
merge-multiple: true | |
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 }} | |
### |