-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (36 loc) · 1.05 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
name: Lint & Test
on:
pull_request:
branches: ["*"]
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
cache: "npm"
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v2
id: cache_node_modules
with:
# check diff of package.json and package-lock.json
key: ${{ runner.os }}-build-node_modules-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/package.json') }}
path: "**/node_modules"
- name: Install dependencies
if: steps.cache_node_modules.outputs.cache-hit != 'true'
run: npm install
- name: Build
run: npm run build:all
- name: Lint
run: npm run lint:all
- name: Test
run: npm run test:evm
env:
PROVIDER_URL: https://goerli.infura.io/v3/${{ secrets.INFURA_KEY }}