-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update dependencies and test against kubo (#255)
* chore: update dependencies * test: run cmd tests from kubo to catch regressions 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
Showing
3 changed files
with
65 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Kubo Cmds Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.md' | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
kubo-cmd-test: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.x | ||
- name: Checkout go-ipfs-cmds | ||
uses: actions/checkout@v4 | ||
with: | ||
path: go-ipfs-cmds | ||
- name: Checkout Kubo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ipfs/kubo | ||
path: kubo | ||
- name: Install Missing Tools | ||
run: sudo apt install -y socat net-tools fish libxml2-utils | ||
- name: Replace go-ipfs-cmds in Kubo go.mod | ||
run: | | ||
go mod edit -replace=github.com/ipfs/go-ipfs-cmds=../go-ipfs-cmds | ||
make mod_tidy | ||
make 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 related to RPC Commands and HTTP RPC CORS | ||
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 go-ipfs-cmds | ||
run: go test -run 'TestIPFSVersionCommandMatchesFlag|TestAdd|TestRPCAuth|TestRPCUnixSocket' . | ||
working-directory: kubo/test/cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters