Skip to content

Commit

Permalink
test: run cmd tests from kubo to catch regressions
Browse files Browse the repository at this point in the history
we would miss regression in rs/cors library if we did not catch it in
Kubo, this gives us early warning when change in this lib would break
upstream consumer
  • Loading branch information
lidel committed Aug 20, 2024
1 parent 8613a2b commit f5f176b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/kubo-sharness.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Kubo Sharness

on:
workflow_dispatch:
pull_request:
paths-ignore:
- '**/*.md'
push:
branches:
- 'master'

jobs:
sharness:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.22.x
- name: Checkout boxo
uses: actions/checkout@v3
with:
path: boxo
- 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: Replace boxo in Kubo go.mod
run: |
go mod edit -replace=github.com/ipfs/go-ipfs-cmds=../go-ipfs-cmds
go mod tidy
cat go.mod
working-directory: kubo
- name: Install sharness dependencies
run: make test_sharness_deps
working-directory: kubo
- name: Run Kubo Sharness Tests that mention RPC API
run: find . -maxdepth 1 -name "*api*.sh" -print0 | xargs -0 -I {} bash -c "echo {}; {}"
working-directory: kubo/test/sharness
- name: Run Kubo CLI Tests related to RPC
run: go test -run 'TestAdd|TestRPCAuth|TestRPCUnixSocket' .
working-directory: kubo/test/cli

0 comments on commit f5f176b

Please sign in to comment.