File tree Expand file tree Collapse file tree 1 file changed +89
-0
lines changed
Expand file tree Collapse file tree 1 file changed +89
-0
lines changed Original file line number Diff line number Diff line change 1+ name : web3telegram DApp - CI
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - ' *'
7+ paths :
8+ - ' dapp/**'
9+ - ' dapp/package.json'
10+ - ' dapp/package-lock.json'
11+ - ' dapp/.eslintrc.json'
12+ - ' dapp/.prettierrc'
13+
14+ concurrency :
15+ group : ${{ github.ref }}-dapp-ci
16+ cancel-in-progress : true
17+
18+ jobs :
19+ check-code :
20+ runs-on : ubuntu-latest
21+ defaults :
22+ run :
23+ working-directory : ./dapp
24+ steps :
25+ - uses : actions/checkout@v4
26+
27+ - uses : actions/setup-node@v4
28+ with :
29+ node-version : 14
30+ cache : ' npm'
31+ cache-dependency-path : dapp/package-lock.json
32+
33+ - name : Install Dependencies
34+ run : npm ci
35+
36+ - name : Lint
37+ run : npm run lint
38+
39+ - name : Check formatting
40+ run : npm run check-format
41+
42+ test :
43+ runs-on : ubuntu-latest
44+ defaults :
45+ run :
46+ working-directory : ./dapp
47+ steps :
48+ - uses : actions/checkout@v4
49+
50+ - uses : actions/setup-node@v4
51+ with :
52+ node-version : 14
53+ cache : ' npm'
54+ cache-dependency-path : dapp/package-lock.json
55+
56+ - name : Install Dependencies
57+ run : npm ci
58+
59+ - name : Test unit
60+ run : npm run test
61+
62+ - name : Test with coverage
63+ run : npm run ctest
64+
65+ build :
66+ runs-on : ubuntu-latest
67+ defaults :
68+ run :
69+ working-directory : ./dapp
70+ steps :
71+ - uses : actions/checkout@v4
72+
73+ - uses : actions/setup-node@v4
74+ with :
75+ node-version : 14
76+ cache : ' npm'
77+ cache-dependency-path : dapp/package-lock.json
78+
79+ - name : Install Dependencies
80+ run : npm ci
81+
82+ - name : Format check
83+ run : npm run check-format
84+
85+ - name : Lint check
86+ run : npm run lint
87+
88+ - name : Test build
89+ run : npm run test
You can’t perform that action at this time.
0 commit comments