-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (41 loc) · 1.08 KB
/
CI.yml
File metadata and controls
51 lines (41 loc) · 1.08 KB
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
47
48
49
50
51
name: CI
on:
push:
pull_request_target:
branches:
- main
types:
- opened
jobs:
lint-and-test:
strategy:
matrix:
node: ["16.x", "18.x"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
TREASURY_PRIV_KEY: ${{ secrets.TREASURY_PRIV_KEY }}
SECOND_ACC_PRIV_KEY: ${{ secrets.SECOND_ACC_PRIV_KEY }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install -g yarn
- id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ matrix.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ matrix.os }}-yarn-
- uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- run: yarn
- run: yarn lint
- run: yarn test