Merge 03ab5cf12c41ec1d7661279f88b12b4663be4446 into main #3736
This file contains hidden or 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: release-preflight | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release/v2* | |
| concurrency: | |
| group: release-preflight-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| preflight: | |
| if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom' | |
| runs-on: ubuntu-latest | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - name: Use Node.js 18.x | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: '18.x' | |
| cache: 'yarn' | |
| - name: Install xvfb | |
| run: sudo apt-get install xvfb | |
| - name: Install dependencies | |
| run: yarn install --immutable --immutable-cache | |
| - name: Build project | |
| run: yarn build | |
| - name: Run checks | |
| run: | | |
| yarn ci-check | |
| yarn lerna run --ignore=@carbon/ibmdotcom-web-components ci-check | |
| yarn lint | |
| yarn lint:styles | |
| - name: Run checks (web components) | |
| run: xvfb-run --auto-servernum yarn lerna run --stream --prefix --scope=@carbon/ibmdotcom-web-components ci-check | |
| - uses: act10ns/slack@v2 | |
| with: | |
| status: ${{ job.status }} | |
| if: failure() |