47 lines (46 loc) · 1.16 KB
/
interop.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
43
44
45
46
47
on:
pull_request:
branches:
- master
push:
branches:
- master
name: Interop Tests
jobs:
unit:
runs-on: ubuntu-latest
name: Js/Go
steps:
- uses: actions/setup-go@v2
with:
go-version: "1.16.x"
- name: Go information
run: |
go version
go env
- uses: actions/checkout@v2
with:
path: 'libp2p'
- uses: actions/checkout@v2
with:
repository: 'libp2p/go-libp2p-daemon'
path: 'daemon'
- uses: actions/checkout@v2
with:
repository: 'libp2p/interop'
path: 'interop'
- name: Mod replace go-libp2p in go-libp2p-daemon
working-directory: daemon
run: |
go mod edit -replace "github.com/libp2p/go-libp2p=../libp2p"
go mod tidy
- name: Build libp2p daemon
working-directory: daemon
run: |
go build -o daemon ./p2pd
- name: Setup interop tests
working-directory: interop
run: npm install
- name: Run interop tests
working-directory: interop
run: LIBP2P_GO_BIN="$(pwd)/../daemon/daemon" npm run test