Merge ccaa448c12148a6767feb9943d5e1a4981302b46 into main #3391
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@v4 | |
| - name: Use Node.js 18.x | |
| uses: actions/setup-node@v4 | |
| 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() |