-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (40 loc) · 1.19 KB
/
main.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
---
name: CI
env:
node-version: 16.16.0
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
integration:
runs-on: ubuntu-latest
env:
MAINNET_RPC_ENDPOINT: ${{ secrets.MAINNET_RPC_ENDPOINT }}
COINMARKETCAP_API_KEY: ${{ secrets.COINMARKETCAP_API_KEY }}
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: ${{ env.node-version }}
cache: yarn
cache-dependency-path: smart-contracts/yarn.lock
- name: Smart contracts setup
run: |
cd smart-contracts
yarn install
yarn compile
yarn lint
- name: run smart-contracts base tests
run: |
cd smart-contracts
yarn test test/base/*.* || yarn test test/base/*.*
- name: Run Slither
uses: crytic/slither-action@main
id: slither
with:
node-version: ${{ env.node-version }}
target: 'smart-contracts'
slither-args: '--exclude assembly,low-level-calls,solc-version,pragma,naming-convention,external-function,too-many-digits,block-timestamp,immutable-states'