forked from polywrap/wrap-integrations
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (47 loc) · 1.62 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
name: CI
on: [pull_request]
jobs:
CI:
name: Near CI
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v2
# 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: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: near-wrapper-nvm
working-directory: ./protocol/near/wrapper
- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: '${{ steps.near-wrapper-nvm.outputs.NVMRC }}'
- name: Install dependencies
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline
working-directory: ./protocol/near/wrapper
- name: Build
run: yarn build
working-directory: ./protocol/near/wrapper
- name: Test
run: yarn test
working-directory: ./protocol/near/wrapper