-
Notifications
You must be signed in to change notification settings - Fork 29
44 lines (37 loc) · 1.09 KB
/
tests.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
name: Run Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head_sha }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use Cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
- name: Install
run: npm install
- name: Fork
run: npm run ganache:fork &
env:
PUBLIC_ADDRESS: ${{ secrets.PUBLIC_ADDRESS }}
ETH_NODE_URL: ${{ secrets.ETH_NODE_URL }}
- name: Tests
run: npm run test -- --runInBand --detectOpenHandles --forceExit
env:
PUBLIC_ADDRESS: ${{ secrets.PUBLIC_ADDRESS }}
ETH_NODE_URL: ${{ secrets.ETH_NODE_URL }}