Skip to content

Commit ad0b1ae

Browse files
committed
chore(scripts): update builds script to use codecov v6 and dependabot/fetch-metadata v3
1 parent b18aac2 commit ad0b1ae

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

scripts/builds

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- run: go build -v ./...
4646
- run: |
4747
go test -race -covermode=atomic -coverprofile='coverage.txt' ./...
48-
- uses: codecov/codecov-action@v5
48+
- uses: codecov/codecov-action@v6
4949
with:
5050
file: ./coverage.txt
5151
token: \${{ secrets.CODECOV_TOKEN }}
@@ -59,7 +59,7 @@ jobs:
5959
if: \${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
6060
steps:
6161
- id: metadata
62-
uses: dependabot/fetch-metadata@v2
62+
uses: dependabot/fetch-metadata@v3
6363
with:
6464
github-token: \"\${{ secrets.GITHUB_TOKEN }}\"
6565
- run: |

scripts/gomodtidy

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
# shellcheck disable=SC2016
4+
root=$PWD
5+
find . -type f -name go.mod | while read -r mod; do
6+
echo "Running go mod tidy in $(dirname "$mod")"
7+
cd "$(dirname "$mod")" && go mod tidy
8+
cd "$root" || exit 1
9+
done

0 commit comments

Comments
 (0)