-
Notifications
You must be signed in to change notification settings - Fork 18
57 lines (46 loc) · 1.28 KB
/
ethereum-ts.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
name: Ethereum Typescript
on:
push:
paths:
- 'ethereum/gateway-eth-ts/**'
- '.github/**'
pull_request:
jobs:
ethereum-build:
name: Build, lint and test the ethereum libraries on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['20.x']
os: [ubuntu-latest]
defaults:
run:
working-directory: ./ethereum/gateway-eth-ts
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache node dependencies
uses: actions/cache@v2
with:
path: |
./node_modules
key: yarn-ethereum-${{ hashFiles('ethereum/yarn.lock') }}
- name: NPM login
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: Install
run: yarn
- name: Lint
run: yarn lint
- name: Build dependencies
run: (cd ../smart-contract && yarn && yarn build)
- name: Run tests
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
INFURA_KEY: ${{ secrets.INFURA_KEY }}
run: yarn test
- name: Build
run: yarn build