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 authored Jan 30, 2023
1 parent 552b420 commit 37a5606
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gateway-sharness.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Gateway Sharness

on:
workflow_dispatch:
pull_request:
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 37a5606

Please sign in to comment.