Skip to content

Commit

Permalink
ci: run examples against latest go-ipfs even in forks
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Nov 17, 2021
1 parent f622360 commit a25f69d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .circleci/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,13 @@ jobs:
command: bash <(curl -s https://codecov.io/bash) -cF unittests -X search -f coverage/unit_tests.coverprofile
- run:
command: |
current=$(git rev-parse HEAD)
go get github.com/ipfs/go-ipfs@$current
cp go.mod go.mod.bak
cp go.sum go.sum.bak
go mod edit -replace github.com/ipfs/go-ipfs=./../../..
go mod tidy
go test -v ./...
mv go.mod.bak go.mod
mv go.sum.bak go.sum
working_directory: ~/ipfs/go-ipfs/docs/examples/go-ipfs-as-a-library

- run:
Expand Down

0 comments on commit a25f69d

Please sign in to comment.