Merge b4000916f8743c6fcb9c3b7f8042d0fd93e55ed8 into main #24767
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-check | |
on: | |
push: | |
branches: [ main, release/*, feat/* ] | |
pull_request: | |
branches: [ main, release/*, feat/* ] | |
concurrency: | |
group: ci-check-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-packages: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.15 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable --immutable-cache | |
- name: Build project | |
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-web-components --ignore @carbon/ibmdotcom-services-store build | |
- name: Run CI Checks | |
run: | | |
yarn ci-check | |
yarn lerna run --ignore=@carbon/ibmdotcom-web-components ci-check | |
web-components: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.15 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable --immutable-cache | |
- name: Build project | |
run: yarn lerna run --stream build | |
- name: Install xvfb | |
run: sudo apt-get install xvfb | |
- name: Run basic checks | |
run: xvfb-run --auto-servernum yarn lerna run --stream --prefix --verbose --scope=@carbon/ibmdotcom-web-components ci-check |