Skip to content

Commit

Permalink
chore(github-actions): activate e2e integration tests in Github Actio…
Browse files Browse the repository at this point in the history
…ns (#8396)

### Related Ticket(s)

No related issue

### Description

This is a new workflow that will run the e2e integration tests on push to `main`, `release/*`, and nightly. With this in place, I'm removing the PR CSB e2e testing (but will still generate the codesandbox examples for now, unless we want to remove that too? or just run it with a label?).

This will hopefully free up the Jenkins jobs tremendously.

### Changelog

**New**

- `e2e-integration.yml`
  • Loading branch information
jeffchew authored Feb 25, 2022
1 parent b1580bf commit 2b03438
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 16 deletions.
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/e2e-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
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: ubuntu-latest
strategy:
matrix:
node-version: ['14.x']
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Install xvfb
run: sudo apt-get install xvfb
- 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@v1
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: ubuntu-latest
strategy:
matrix:
node-version: [ '14.x' ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Install xvfb
run: sudo apt-get install xvfb
- 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@v1
if: failure()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
Binary file not shown.
Binary file not shown.
22 changes: 6 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1356,21 +1356,11 @@
"@carbon/import-once" "^10.6.0"
"@carbon/layout" "^10.35.0"

"@carbon/[email protected]":
version "10.27.0"
resolved "https://registry.yarnpkg.com/@carbon/icon-helpers/-/icon-helpers-10.27.0.tgz#ae3e5389e3b4efe868d23ab107282ef345110287"
integrity sha512-tYp5Uz1In5idyTFKyDWA1yxHWkhyUQe4IsuajMyVkd93cbWmFjqKvPjx/j5cLUle3j91vLfVawpErB2oL/fXuw==

"@carbon/icon-helpers@^10.26.0":
"@carbon/[email protected]", "@carbon/icon-helpers@^10.26.0":
version "10.26.0"
resolved "https://registry.yarnpkg.com/@carbon/icon-helpers/-/icon-helpers-10.26.0.tgz#fe8277836e7b758ae48c93fbab8aab444b2f3b70"
integrity sha512-zrWRGn40whcKddYlj9MFsPMWwM5sLK2yfYpUbqKv2QFxlMyT60d/4Jd+yS81JVSQ39JO3vvlfb+Vl93O5Zl+dw==

"@carbon/icon-helpers@^10.27.0":
version "10.27.0"
resolved "https://registry.yarnpkg.com/@carbon/icon-helpers/-/icon-helpers-10.27.0.tgz#ae3e5389e3b4efe868d23ab107282ef345110287"
integrity sha512-tYp5Uz1In5idyTFKyDWA1yxHWkhyUQe4IsuajMyVkd93cbWmFjqKvPjx/j5cLUle3j91vLfVawpErB2oL/fXuw==

"@carbon/[email protected]", "@carbon/icons-react@^10.45.0":
version "10.45.0"
resolved "https://registry.yarnpkg.com/@carbon/icons-react/-/icons-react-10.45.0.tgz#662b3667c74193fd51722e99ee00df72a3b9ac99"
Expand Down Expand Up @@ -1407,12 +1397,12 @@
resolved "https://registry.yarnpkg.com/@carbon/motion/-/motion-10.27.0.tgz#6b21d059600cccf462c9d29bb1133cfa1bc01f1e"
integrity sha512-E9UmtVojjTGoeVME7DtguFodCm697EkNBZifq8tHwczBLSpU+j02vQjH1l1K8wrpEr5CGxTs6CaD4RQsoXuYLA==

"@carbon/pictograms-react@11.22.0":
version "11.22.0"
resolved "https://registry.yarnpkg.com/@carbon/pictograms-react/-/pictograms-react-11.22.0.tgz#1c1e44ee292ca1fc39a1f38cc4c72af1c0347f24"
integrity sha512-MZFLRpA4Nuy9TljDWe1r2s/lSJ3H1/Vnt2fYSr45BiqZM/vQht6wYEKLXbor6vMSffI+LfJu/W2XL9u/H7IgSQ==
"@carbon/pictograms-react@11.21.0":
version "11.21.0"
resolved "https://registry.yarnpkg.com/@carbon/pictograms-react/-/pictograms-react-11.21.0.tgz#63c86e75449ab8ce6df5d47178786b38fc06cbda"
integrity sha512-rQhVV6eB9EY8jf9d8JqoDcu2ajc7K9EMhVAtmdTVv6N/FqQxDr3EwtV1HcKnhloVjx/NePn+5JS05dRijdD1IA==
dependencies:
"@carbon/icon-helpers" "^10.27.0"
"@carbon/icon-helpers" "^10.26.0"
"@carbon/telemetry" "0.0.0-alpha.6"
prop-types "^15.7.2"

Expand Down

0 comments on commit 2b03438

Please sign in to comment.