File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Gateway Sharness
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ pull_request :
6
+ paths : ['gateway/**']
7
+ push :
8
+ branches : ['main']
9
+ paths : ['gateway/**']
10
+
11
+ jobs :
12
+ sharness :
13
+ runs-on : ubuntu-latest
14
+ defaults :
15
+ run :
16
+ shell : bash
17
+ steps :
18
+ - name : Setup Go
19
+ uses : actions/setup-go@v3
20
+ with :
21
+ go-version : 1.19.1
22
+ - name : Checkout go-libipfs
23
+ uses : actions/checkout@v3
24
+ with :
25
+ path : go-libipfs
26
+ - name : Checkout Kubo
27
+ uses : actions/checkout@v3
28
+ with :
29
+ repository : ipfs/kubo
30
+ path : kubo
31
+ - name : Install Missing Tools
32
+ run : sudo apt install -y socat net-tools fish libxml2-utils
33
+ - name : Restore Go Cache
34
+ uses : protocol/cache-go-action@v1
35
+ with :
36
+ name : ${{ github.job }}
37
+ - name : Replace go-libipfs in Kubo go.mod
38
+ run : |
39
+ go mod edit -replace=github.com/ipfs/go-libipfs=../go-libipfs
40
+ go mod tidy
41
+ cat go.mod
42
+ working-directory : kubo
43
+ - name : Install sharness dependencies
44
+ run : make test_sharness_deps
45
+ working-directory : kubo
46
+ - name : Run Sharness Tests
47
+ run : find . -maxdepth 1 -name "*gateway*.sh" -print0 | xargs -0 -I {} bash -c "echo {}; {}"
48
+ working-directory : kubo/test/sharness
You can’t perform that action at this time.
0 commit comments