-
Notifications
You must be signed in to change notification settings - Fork 158
47 lines (44 loc) · 1.41 KB
/
ci-check.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
name: ci-check
on:
push:
branches: [ main, release/*, feat/* ]
pull_request:
branches: [ main, release/*, feat/* ]
concurrency:
group: ci-check-${{ github.ref }}
cancel-in-progress: true
jobs:
check-packages:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.15
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Build project
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-web-components --ignore @carbon/ibmdotcom-services-store build
- name: Run CI Checks
run: |
yarn ci-check
yarn lerna run --ignore=@carbon/ibmdotcom-web-components ci-check
web-components:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.15
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Build project
run: yarn lerna run --stream build
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Run basic checks
run: xvfb-run --auto-servernum yarn lerna run --stream --prefix --verbose --scope=@carbon/ibmdotcom-web-components ci-check