File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 - name : Run fork.sh scripts and verify no diffs
5757 run : |
5858 cd testing
59- ./fork.sh 1.25
59+ ./fork.sh 1.25.4
6060 cd ..
6161
6262 if ! git diff --exit-code testing/ > /dev/null 2>&1; then
Original file line number Diff line number Diff line change @@ -94,11 +94,12 @@ backup_files "${CODSPEED_FILES[@]}"
9494
9595# We need to copy the testing/ package:
9696rm -rf go testing internal
97- git clone -b " release-branch. go${GO_VERSION} " --depth 1 https://github.com/golang/go/
97+ git clone -b " go${GO_VERSION} " --depth 1 https://github.com/golang/go/
9898cp -r go/src/testing testing/
9999
100100# Copy all required internal packages. We need them to have a clean `go mod tidy` output.
101101copy_internal_packages " cpu" " fuzz" " goarch" " race" " sysinfo" " testlog" " testenv" " syscall/windows" " godebug" " synctest" " bisect" " godebugs" " cfg" " platform" " diff" " txtar"
102+ rm -rf go
102103
103104# Replace all `"internal/*"` imports with 'github.com/CodSpeedHQ/codspeed-go/testing/internal/'
104105find . -type f -name " *.go" -exec sed -i ' s|"internal/|"github.com/CodSpeedHQ/codspeed-go/testing/internal/|g' {} +
@@ -122,6 +123,7 @@ restore_files "${CODSPEED_FILES[@]}"
122123
123124apply_patch " patches/benchmark_stopbenchmark_fail.patch" 10 " .."
124125
126+
125127# Run pre-commit and format the code
126128go fmt ./... > /dev/null 2>&1 || true
127129pre-commit run --all-files > /dev/null 2>&1 || true
You can’t perform that action at this time.
0 commit comments