-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (37 loc) · 898 Bytes
/
dev.yml
File metadata and controls
40 lines (37 loc) · 898 Bytes
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
name: Dev CI
on:
pull_request:
branches:
- "*"
- "!main"
jobs:
lint:
runs-on: ubuntu-latest
env:
ETH_NODE_URI: ${{ secrets.ETH_NODE_URI }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/setup-node@v2
with:
node-version: 12
- run: yarn
- run: yarn lint
test:
runs-on: ubuntu-latest
env:
ETH_NODE_URI: ${{ secrets.ETH_NODE_URI }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/setup-node@v2
with:
node-version: 12
- run: yarn
- run: yarn test