-
-
Notifications
You must be signed in to change notification settings - Fork 62
51 lines (48 loc) · 1.36 KB
/
ci.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
name: CI
on: push
env:
NODE_OPTIONS: --max_old_space_size=8192
jobs:
build:
name: Build
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@v3.2.0
with:
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@v2.2.4
with:
version: 7.x.x
- uses: actions/setup-node@v3.5.1
with:
node-version: '18'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build:icons
- run: pnpm chromatic --exit-once-uploaded --exit-zero-on-changes
working-directory: storybook/
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
STORYBOOK_BUILD_TIMEOUT: 1200000 # 20 minutes
- run: cat /home/runner/work/styled-icons/styled-icons/storybook/build-storybook.log || true
if: always()
lint:
name: Lint
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@v3.2.0
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2.2.4
with:
version: 7.x.x
- uses: actions/setup-node@v3.5.1
with:
node-version: '18'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm fmt:check
- run: pnpm mrl check