File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI Pipeline
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+ pull_request :
7+ branches : [ main, develop ]
8+
9+ jobs :
10+ build-and-test :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repo
15+ uses : actions/checkout@v4
16+
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v4
19+ with :
20+ node-version : 22
21+ cache : " npm"
22+
23+ - name : Install dependencies
24+ run : npm install
25+
26+ - name : Lint JS/TS
27+ run : npm run lint
28+
29+ - name : Format check
30+ run : npx prettier --check .
31+
32+ - name : Solidity lint
33+ run : npx solhint "contracts/**/*.sol"
34+
35+ - name : Compile contracts
36+ run : npm run compile
37+
38+ - name : Run tests
39+ run : npm run test
40+
41+ - name : Gas report
42+ run : npx hardhat test --network hardhat
43+
44+ - name : Contract size check
45+ run : npx hardhat size-contracts
You can’t perform that action at this time.
0 commit comments