-
Notifications
You must be signed in to change notification settings - Fork 12
96 lines (77 loc) · 3 KB
/
near-ci.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: CI
on:
pull_request:
paths:
- 'protocol/near/**'
jobs:
CI:
name: Near CI
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v2
# NEAR interface
#- name: (NEAR Interface) Read .nvmrc
# run: echo ::set-output name=NVMRC::$(cat .nvmrc)
# id: near-interface-nvm
# working-directory: ./protocol/near/near-interface
#- name: (NEAR Interface) Setup Node.js
# uses: actions/setup-node@master
# with:
# node-version: '${{ steps.near-interface-nvm.outputs.NVMRC }}'
#- name: (NEAR Interface) Install dependencies
# run: yarn install --nonInteractive --frozen-lockfile --prefer-offline
# working-directory: ./protocol/near/near-interface
# NEAR borsh-wrapper
- name: (NEAR Borsh wrapper) Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: near-borsh-wrapper-nvm
working-directory: ./protocol/near/borsh-wrapper
- name: (NEAR Borsh wrapper) Setup Node.js
uses: actions/setup-node@master
with:
node-version: '${{ steps.near-borsh-wrapper-nvm.outputs.NVMRC }}'
- name: (NEAR Borsh wrapper) Install dependencies
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline
working-directory: ./protocol/near/borsh-wrapper
- name: (NEAR Borsh wrapper) Build
run: yarn build
working-directory: ./protocol/near/borsh-wrapper
# NEAR plugin
- name: (NEAR Plugin) Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: near-plugin-nvm
working-directory: ./protocol/near/plugin-js
- name: (NEAR Plugin) Setup Node.js
uses: actions/setup-node@master
with:
node-version: '${{ steps.near-plugin-nvm.outputs.NVMRC }}'
- name: (NEAR Plugin) Install dependencies
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline
working-directory: ./protocol/near/plugin-js
- name: (NEAR Plugin) Build
run: yarn build
working-directory: ./protocol/near/plugin-js
- name: (NEAR Plugin) Test
run: yarn test
working-directory: ./protocol/near/plugin-js
#
# NEAR wrapper
- name: (NEAR Wrapper) Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: near-wrapper-nvm
working-directory: ./protocol/near/wrapper
- name: (NEAR Wrapper) Setup Node.js
uses: actions/setup-node@master
with:
node-version: '${{ steps.near-wrapper-nvm.outputs.NVMRC }}'
- name: (NEAR Wrapper) Install dependencies
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline
working-directory: ./protocol/near/wrapper
- name: (NEAR Wrapper) Build
run: yarn build
working-directory: ./protocol/near/wrapper
- name: (NEAR Wrapper) Test
run: yarn test
working-directory: ./protocol/near/wrapper