Skip to content

Commit 37a5606

Browse files
authored
chore: gateway sharness tests from Kubo w/ minimal cache (#137)
1 parent 552b420 commit 37a5606

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Gateway Sharness
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches: ['main']
8+
paths: ['gateway/**']
9+
10+
jobs:
11+
sharness:
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
shell: bash
16+
steps:
17+
- name: Setup Go
18+
uses: actions/setup-go@v3
19+
with:
20+
go-version: 1.19.1
21+
- name: Checkout Kubo
22+
uses: actions/checkout@v3
23+
with:
24+
repository: ipfs/kubo
25+
path: kubo
26+
- name: Install Missing Tools
27+
run: sudo apt install -y socat net-tools fish libxml2-utils
28+
- name: Restore Go Cache
29+
uses: protocol/cache-go-action@v1
30+
with:
31+
name: ${{ github.job }}
32+
- name: Install sharness dependencies
33+
run: make test_sharness_deps
34+
working-directory: kubo
35+
- name: Run Sharness Tests
36+
run: find . -maxdepth 1 -name "*gateway*" -exec {} \;
37+
working-directory: kubo/test/sharness

0 commit comments

Comments
 (0)