Skip to content

Update dependencies #454

Update dependencies

Update dependencies #454

Workflow file for this run

on: [push, pull_request]
name: Integration Tests
jobs:
sharness:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu", "macos" ]
go: [ "1.23.x" ]
runs-on: ${{ matrix.os }}-latest
name: Sharness (${{ matrix.os }} / go-${{ matrix.go }})
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Go information
run: |
go version
go env
- name: Run sharness tests
run: |
# we want to run tests against the current version of ipget
# however, that version might be in a fork so we need to replace the dependency
# backup the go.mod and go.sum files to restore them after we run the tests
cd dependencies
cp go.mod go.mod.bak
cp go.sum go.sum.bak
# make sure the tests run against the current version of ipget
go mod edit -replace github.com/ipfs/ipget=./../..
go mod tidy
cd ..
make
cd dependencies
# restore the go.mod and go.sum files to their original state
mv go.mod.bak go.mod
mv go.sum.bak go.sum
env:
TEST_VERBOSE: 1
working-directory: sharness