-
Notifications
You must be signed in to change notification settings - Fork 54
43 lines (42 loc) · 1.31 KB
/
integration.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
on: [push, pull_request]
name: Integration Tests
jobs:
sharness:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu", "macos" ]
go: [ "1.21.x" ]
runs-on: ${{ matrix.os }}-latest
name: Sharness (${{ matrix.os }} / go-${{ matrix.go }})
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Go information
run: |
go version
go env
- name: Run sharness tests
run: |
# we want to run tests against the current version of ipget
# however, that version might be in a fork so we need to replace the dependency
# backup the go.mod and go.sum files to restore them after we run the tests
cd dependencies
cp go.mod go.mod.bak
cp go.sum go.sum.bak
# make sure the tests run against the current version of ipget
go mod edit -replace github.com/ipfs/ipget=./../..
go mod tidy
cd ..
make
cd dependencies
# restore the go.mod and go.sum files to their original state
mv go.mod.bak go.mod
mv go.sum.bak go.sum
env:
TEST_VERBOSE: 1
working-directory: sharness