forked from carbon-design-system/carbon-for-ibm-dotcom
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (59 loc) · 2.24 KB
/
ci-check-ui-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: ci-check-integration-ui
on:
push:
branches:
- 'test/*'
pull_request:
branches:
- 'test/*'
jobs:
integration-ui:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
node-version: ['14.x']
browser: [chromium, firefox]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Run web-component-analyzer
run: yarn lerna run --stream --prefix --scope=@carbon/ibmdotcom-web-components wca
- name: Install xvfb
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install xvfb
- name: Run checks with xvfb (React)
if: matrix.os == 'ubuntu-latest'
run: xvfb-run --auto-servernum yarn lerna run --stream --prefix --scope=@carbon/ibmdotcom-react test:integration:ui
env:
DDS_UI_INTEGRATION_TEST_BROWSER: ${{ matrix.browser }}
DDS_UI_INTEGRATION_TEST_TIMEOUT: 60000
LAUNCH_TIMEOUT: 600000
- name: Run checks with xvfb (Web Components)
if: matrix.os == 'ubuntu-latest'
run: xvfb-run --auto-servernum yarn lerna run --stream --prefix --scope=@carbon/ibmdotcom-web-components test:integration:ui
env:
DDS_UI_INTEGRATION_TEST_BROWSER: ${{ matrix.browser }}
DDS_UI_INTEGRATION_TEST_TIMEOUT: 60000
LAUNCH_TIMEOUT: 600000
- name: Run checks without xvfb (React)
if: matrix.os != 'ubuntu-latest'
run: yarn lerna run --stream --prefix --scope=@carbon/ibmdotcom-react test:integration:ui
env:
DDS_UI_INTEGRATION_TEST_BROWSER: ${{ matrix.browser }}
DDS_UI_INTEGRATION_TEST_TIMEOUT: 60000
LAUNCH_TIMEOUT: 600000
- name: Run checks without xvfb (Web Components)
if: matrix.os != 'ubuntu-latest'
run: yarn lerna run --stream --prefix --scope=@carbon/ibmdotcom-web-components test:integration:ui
env:
DDS_UI_INTEGRATION_TEST_BROWSER: ${{ matrix.browser }}
DDS_UI_INTEGRATION_TEST_TIMEOUT: 60000
LAUNCH_TIMEOUT: 600000