Skip to content

Commit

Permalink
chore: gateway sharness tests from Kubo w/ minimal cache (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Jan 30, 2023
1 parent bad0cf0 commit d06f4a9
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/gateway-sharness.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Gateway Sharness

on:
workflow_dispatch:
pull_request:
paths: ['gateway/**']
push:
branches: ['main']
paths: ['gateway/**']

jobs:
sharness:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19.1
- name: Checkout Kubo
uses: actions/checkout@v3
with:
repository: ipfs/kubo
path: kubo
- name: Install Missing Tools
run: sudo apt install -y socat net-tools fish libxml2-utils
- name: Restore Go Cache
uses: protocol/cache-go-action@v1
with:
name: ${{ github.job }}
- name: Install sharness dependencies
run: make test_sharness_deps
working-directory: kubo
- name: Run Sharness Tests
run: find . -maxdepth 1 -name "*gateway*" -exec {} \;
working-directory: kubo/test/sharness

0 comments on commit d06f4a9

Please sign in to comment.