forked from bandprotocol/bandchain
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.38 KB
/
scan.yaml
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: Scan Workflow
on: [push, pull_request]
jobs:
scan-test:
runs-on: ubuntu-latest
env:
working-directory: ./scan
if: false
steps:
- name: Code Checkout
uses: actions/checkout@v2
- name: Setup node 12
uses: actions/setup-node@v1
with:
node-version: "12"
- name: Cache node_modules
id: scan-node-modules-cache
uses: actions/cache@v1
with:
path: scan/node_modules
key: ${{ runner.OS }}-scan-test-${{ hashFiles('**/yarn.lock') }}
- name: Yarn install deps with node_modules cache
run: |
yarn install --frozen-lockfile
if: steps.scan-node-modules-cache.outputs.cache-hit != 'true'
working-directory: ${{env.working-directory}}
- name: Run yarn build
run: yarn build
env:
RPC_URL: "https://d3n.bandprotocol.com/rest"
GRAPHQL_URL: "wss://d3n.bandprotocol.com/v1/graphql"
NETWORK: "GUANYU38"
working-directory: ${{env.working-directory}}
- name: Run install cypress
run: yarn cypress install
working-directory: ${{env.working-directory}}
- name: Run yarn test
run: yarn test
working-directory: ${{env.working-directory}}
- name: Run yarn integration-test
run: yarn integration-test
working-directory: ${{env.working-directory}}