-
Notifications
You must be signed in to change notification settings - Fork 11
109 lines (85 loc) · 2.31 KB
/
ci.yaml
File metadata and controls
109 lines (85 loc) · 2.31 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Tests and Checks
on: [push]
env:
REACT_APP_CHAIN_ID: 5
IS_CI_ENV: true
jobs:
typecheck:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
- name: Install deps
run: yarn
- name: TSC
run: yarn run typecheck
lint:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
- name: Install deps
run: yarn
- name: Lint
run: yarn lint
- name: pretty
run: yarn pretty
- name: Lint styles
run: yarn lint-styles
storybooks:
runs-on: [self-hosted, fe]
container:
image: node:14.15.1-buster
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
- run: |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
apt-get update -y
apt-get install google-chrome-stable -y
- name: Install deps
run: yarn
- name: Build static storybooks
run: yarn build-storybook
- name: Snapshot
run: yarn loki --chromeFlags="--headless --no-sandbox --disable-dev-shm-usage"
- name: Reg-suit
run: yarn regression
test:
runs-on: ubuntu-20.04
container:
image: node:14.15.1-buster
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
- name: Install deps
run: yarn
- name: Run tests
run:
yarn test --ci --json --coverage --testLocationInResults
--outputFile=./coverage/report.json
- uses: ArtiomTr/jest-coverage-report-action@v2
with:
package-manager: yarn
coverage-file: ./coverage/report.json
skip-step: all
github-token: ${{ secrets.GITHUB_TOKEN }}