-
Notifications
You must be signed in to change notification settings - Fork 24
45 lines (42 loc) · 1.14 KB
/
verify.yaml
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
name: Verify
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20.5.1'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- run: npm run lint
build:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID}}
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # messes up download of ssh dependencies
- name: Use Foundry (for anvil)
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- run: anvil --version
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
- run: cd ./examples/sample-hardhat-project && npm ci && npm run test