Skip to content

feat(styles): use CSS logical properties #12212

feat(styles): use CSS logical properties

feat(styles): use CSS logical properties #12212

Workflow file for this run

name: CI # Run CI Checks
on:
pull_request:
branches:
<<<<<<< HEAD

Check failure on line 6 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
- feat/percy-integration
=======
- main
- v1
- 'release/v2*'
>>>>>>> 93395596b529fb2e1bb7591e8d4792f1ff1de7ff
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: yarn
- name: Cache dependencies
uses: actions/cache@v2
with:
path: '**/node_modules'
key: build-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install
run: yarn
- name: CI build checks
run: yarn ci-check:build
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: yarn
- name: Cache dependencies
uses: actions/cache@v4
with:
path: '**/node_modules'
key: lint-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install
run: yarn
- name: CI lint checks
run: yarn ci-check:lint
spellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: yarn
- name: Cache dependencies
uses: actions/cache@v4
with:
path: '**/node_modules'
key: spellcheck-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install
run: yarn
- name: CI spellcheck checks
run: yarn ci-check:spellcheck
test-c4p:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: yarn
- name: Cache dependencies
uses: actions/cache@v4
with:
path: '**/node_modules'
key: test-c4p-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install
run: yarn
- name: CI tests for c4p
run: yarn ci-check:test:c4p
- name: CI snapshot tests for c4p
run: yarn ci-check:test:c4p:snapshot
test-community:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: yarn
- name: Cache dependencies
uses: actions/cache@v4
with:
path: '**/node_modules'
key:
test-community-modules-${{ runner.os }}-${{ hashFiles('yarn.lock')
}}
- name: Install
run: yarn
- name: CI tests for community
run: yarn ci-check:test:community
avt-runner:
strategy:
matrix:
shard: [1, 2, 3, 4]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: yarn
- name: Install
run: yarn
- name: Install browsers
run: yarn playwright install --with-deps
- name: Build project
run: yarn build
- name: Run storybook
id: storybook
run: |
npx serve -l 3000 packages/core/storybook-static &
pid=$!
echo "pid=$pid" >> $GITHUB_OUTPUT
- uses: ./actions/wait-for-it
with:
URL: 'http://localhost:3000'
timeout-minutes: 3
- name: Run AVT
if: github.repository == 'carbon-design-system/ibm-products'
run: |
yarn playwright test --project chromium --grep @avt --shard="${{ matrix.shard }}/4"
- name: Run VRT
working-directory: packages/core
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_IBM_PRODUCTS }}
run: yarn percy storybook http://localhost:3000
- name: Stop storybook
run: kill ${{ steps.storybook.outputs.pid }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-avt-report
path: .playwright
avt:
if: ${{ always() }}
runs-on: ubuntu-latest
needs: avt-runner
steps:
- name: Check AVT Runner job status
if: ${{ needs.avt-runner.result != 'success' }}