-
Notifications
You must be signed in to change notification settings - Fork 47
54 lines (47 loc) · 1.58 KB
/
PR.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
52
53
54
name: CI
on:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/setup-go@v2
with:
go-version: "1.10.2"
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: "16.x"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache yarn cache
uses: actions/cache@v2
id: cache-yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-nodemodules-
- name: Setup protoc3
run: ./scripts/ci_install_protoc3.sh
- run: yarn install
- run: xvfb-run --auto-servernum yarn test:browser
- run: yarn test:node
# e2e tests currently sporadically fail with Error: Failed to check for transaction receipt
# which originates from the test contract deployment, re-enable once the underlying issue is
# resolved
#- run: chmod +x ./e2e_tests.sh
#- run: ./e2e_tests.sh
# working-directory: "."
# env:
# BUILD_ID: build-1346