e2e-integration #433
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: e2e-integration | |
on: | |
push: | |
branches: [ main, release/* ] | |
schedule: | |
- cron: '0 20 * * 1-5' | |
concurrency: | |
group: e2e-integration-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
web-components: | |
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom' | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
node-version: ['18.x'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable --immutable-cache | |
- name: Build | |
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-react build | |
- name: Build CDN components | |
run: yarn build:components | |
working-directory: packages/web-components | |
- name: Run e2e codesandbox tests | |
run: yarn test:e2e:build && yarn test:e2e:test:no-percy | |
working-directory: packages/web-components | |
- uses: act10ns/slack@v2 | |
if: failure() | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
with: | |
status: ${{ job.status }} | |
react: | |
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom' | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
node-version: [ '18.x' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable --immutable-cache | |
- name: Build | |
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-services-store --ignore @carbon/ibmdotcom-web-components build | |
- name: Run e2e codesandbox tests | |
run: yarn test:e2e:build && yarn test:e2e:test:no-percy | |
working-directory: packages/react | |
- uses: act10ns/slack@v2 | |
if: failure() | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
with: | |
status: ${{ job.status }} |