chore(deps): update styled-components and related dependencies to v5 #15633
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- next-major | |
pull_request: | |
merge_group: | |
branches: | |
- main | |
- next-major | |
types: | |
- checks_requested | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Check for unformatted files | |
run: npm run format:diff | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint JavaScript | |
run: npm run lint | |
- name: Lint markdown | |
run: npm run lint:md | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Test | |
run: npm run test -- --coverage | |
type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Type check | |
run: npm run test:type-check | |
examples: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Install examples dependencies | |
working-directory: examples/nextjs | |
run: npm ci | |
- name: Build examples | |
working-directory: examples/nextjs | |
run: npm run build | |
vrt-runner: | |
runs-on: ubuntu-latest-8-cores | |
strategy: | |
fail-fast: false | |
matrix: | |
shard: [1, 2, 3, 4] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build storybook | |
run: npx storybook build | |
- name: Run storybook | |
id: storybook | |
run: | | |
npx serve -l 6006 storybook-static & | |
pid=$! | |
echo "pid=$pid" >> $GITHUB_OUTPUT | |
sleep 5 | |
- name: Run VRT | |
uses: docker://mcr.microsoft.com/playwright:v1.36.0-jammy | |
env: | |
STORYBOOK_URL: 'http://172.17.0.1:6006' | |
with: | |
args: npx playwright test --grep @vrt --shard="${{ matrix.shard }}/${{ strategy.job-total }}" | |
- name: Stop storybook | |
run: kill ${{ steps.storybook.outputs.pid }} | |
- name: Upload report | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: vrt-${{ matrix.shard }} | |
path: .playwright/report | |
vrt: | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
needs: vrt-runner | |
steps: | |
- name: Check vrt-runner job status | |
if: ${{ needs.vrt-runner.result == 'failure' }} | |
run: exit 1 | |
aat-runner: | |
runs-on: ubuntu-latest-8-cores | |
strategy: | |
fail-fast: false | |
matrix: | |
shard: [1, 2] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build storybook | |
run: npx storybook build | |
- name: Install browsers | |
run: npx playwright install --with-deps | |
- name: Run storybook | |
id: storybook | |
run: | | |
npx serve -l 6006 storybook-static & | |
pid=$! | |
echo "pid=$pid" >> $GITHUB_OUTPUT | |
sleep 5 | |
- name: Run AAT | |
run: npx playwright test --grep @aat --shard="${{ matrix.shard }}/${{ strategy.job-total }}" | |
- name: Stop storybook | |
run: kill ${{ steps.storybook.outputs.pid }} | |
- name: Upload axe reports | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: axe-${{ matrix.shard }} | |
path: .playwright/axe | |
- name: Upload report | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: aat-${{ matrix.shard }} | |
path: .playwright/report | |
aat: | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
needs: aat-runner | |
steps: | |
- name: Check aat-runner job status | |
if: ${{ needs.aat-runner.result == 'failure' }} | |
run: exit 1 | |
build-components-json: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build components.json | |
run: npm run build:components.json | |
sizes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Get export sizes | |
run: node script/get-export-sizes.js |