-
Notifications
You must be signed in to change notification settings - Fork 189
59 lines (53 loc) · 1.71 KB
/
node.js.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
47
48
49
50
51
52
53
54
55
56
57
58
59
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Solidity
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
node-build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('solidity/package-lock.json') }}
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: cd solidity && npm ci
- run: cd solidity && npm run typechain
- run: cd solidity && npm run evm &
- run: cd solidity && npm run test
arbitrary-logic-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/checkout@v2
- name: Test arbitrary logic on mainnet fork
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: cd solidity && npm ci
- run: cd solidity && npm run typechain
- run: cd solidity && npm run evm_fork &
env:
ALCHEMY_ID: ${{ secrets.ALCHEMY_ID }}
- run: cd solidity && npm run test_fork