-
Notifications
You must be signed in to change notification settings - Fork 23
42 lines (38 loc) · 1.1 KB
/
build-test.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
name: Build Test
on:
pull_request:
types:
[opened, closed, edited, ready_for_review, review_requested, reopened]
push:
jobs:
build-test:
name: Build Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
id: yarn-cache
with:
path: |
**/node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn
- name: Build
env:
CI: false
ALCHEMY_MAINNET: ${{ secrets.ALCHEMY_MAINNET }}
ALCHEMY_ROPSTEN: ${{ secrets.ALCHEMY_ROPSTEN }}
PORTIS_DAPP_ID: ${{ secrets.PORTIS_DAPP_ID }}
FORTMATIC_API_KEY: ${{ secrets.FORTMATIC_API_KEY }}
run: yarn build