Skip to content

Commit dbb2d2e

Browse files
authored
Update deps (#55)
1 parent a1cb915 commit dbb2d2e

File tree

7 files changed

+16
-14
lines changed

7 files changed

+16
-14
lines changed

scripts/.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ linters:
4545
- deadcode
4646
- testableexamples
4747
- dupword
48+
- depguard
49+
- tagalign
4850

4951
issues:
5052
exclude-use-default: false

templates/github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
2121
GO111MODULE: "on"
2222
CACHE_BENCHMARK: "off" # Enables benchmark result reuse between runs, may skew latency results.
2323
RUN_BASE_BENCHMARK: "on" # Runs benchmark for PR base in case benchmark result is missing.
24-
GO_VERSION: 1.20.x
24+
GO_VERSION: 1.21.x
2525
jobs:
2626
bench:
2727
runs-on: ubuntu-latest

templates/github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
steps:
2222
- uses: actions/setup-go@v3
2323
with:
24-
go-version: 1.20.x
24+
go-version: 1.21.x
2525
- uses: actions/checkout@v2
2626
- name: golangci-lint
27-
uses: golangci/golangci-lint-action@v3.4.0
27+
uses: golangci/golangci-lint-action@v3.7.0
2828
with:
2929
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
30-
version: v1.51.1
30+
version: v1.54.1
3131

3232
# Optional: working directory, useful for monorepos
3333
# working-directory: somedir

templates/github/workflows/gorelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99
cancel-in-progress: true
1010

1111
env:
12-
GO_VERSION: 1.20.x
12+
GO_VERSION: 1.21.x
1313
jobs:
1414
gorelease:
1515
runs-on: ubuntu-latest

templates/github/workflows/release-assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- created
99
env:
1010
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11-
GO_VERSION: 1.20.x
11+
GO_VERSION: 1.21.x
1212
jobs:
1313
build:
1414
name: Upload Release Assets

templates/github/workflows/test-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
GO111MODULE: "on"
1717
RUN_BASE_COVERAGE: "on" # Runs test for PR base in case base test coverage is missing.
1818
DOCKER_COMPOSE_FILE: ./docker-compose.yml
19-
GO_VERSION: 1.20.x
19+
GO_VERSION: 1.21.x
2020
TARGET_DELTA_COV: 90 # Target coverage of changed lines, in percents
2121
jobs:
2222
test:
@@ -85,7 +85,7 @@ jobs:
8585
id: annotate
8686
if: github.event.pull_request.base.sha != ''
8787
run: |
88-
curl -sLO https://github.com/vearutop/gocovdiff/releases/download/v1.3.6/linux_amd64.tar.gz && tar xf linux_amd64.tar.gz
88+
curl -sLO https://github.com/vearutop/gocovdiff/releases/download/v1.4.0/linux_amd64.tar.gz && tar xf linux_amd64.tar.gz
8989
gocovdiff_hash=$(git hash-object ./gocovdiff)
9090
[ "$gocovdiff_hash" == "8e507e0d671d4d6dfb3612309b72b163492f28eb" ] || (echo "::error::unexpected hash for gocovdiff, possible tampering: $gocovdiff_hash" && exit 1)
9191
git fetch origin master ${{ github.event.pull_request.base.sha }}

templates/github/workflows/test-unit.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ concurrency:
1515
env:
1616
GO111MODULE: "on"
1717
RUN_BASE_COVERAGE: "on" # Runs test for PR base in case base test coverage is missing.
18-
COV_GO_VERSION: 1.20.x # Version of Go to collect coverage
18+
COV_GO_VERSION: 1.21.x # Version of Go to collect coverage
1919
TARGET_DELTA_COV: 90 # Target coverage of changed lines, in percents
2020
jobs:
2121
test:
2222
strategy:
2323
matrix:
24-
go-version: [ 1.18.x, 1.19.x, 1.20.x ]
24+
go-version: [ 1.19.x, 1.20.x, 1.21.x ]
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Install Go stable
@@ -88,14 +88,14 @@ jobs:
8888
id: annotate
8989
if: matrix.go-version == env.COV_GO_VERSION && github.event.pull_request.base.sha != ''
9090
run: |
91-
curl -sLO https://github.com/vearutop/gocovdiff/releases/download/v1.3.6/linux_amd64.tar.gz && tar xf linux_amd64.tar.gz
91+
curl -sLO https://github.com/vearutop/gocovdiff/releases/download/v1.4.0/linux_amd64.tar.gz && tar xf linux_amd64.tar.gz && rm linux_amd64.tar.gz
9292
gocovdiff_hash=$(git hash-object ./gocovdiff)
93-
[ "$gocovdiff_hash" == "8e507e0d671d4d6dfb3612309b72b163492f28eb" ] || (echo "::error::unexpected hash for gocovdiff, possible tampering: $gocovdiff_hash" && exit 1)
93+
[ "$gocovdiff_hash" == "f191b45548bb65ec2c7d88909679a57116ff1ba1" ] || (echo "::error::unexpected hash for gocovdiff, possible tampering: $gocovdiff_hash" && exit 1)
9494
git fetch origin master ${{ github.event.pull_request.base.sha }}
95-
REP=$(./gocovdiff -cov unit.coverprofile -gha-annotations gha-unit.txt -delta-cov-file delta-cov-unit.txt -target-delta-cov ${TARGET_DELTA_COV})
95+
REP=$(./gocovdiff -mod github.com/$GITHUB_REPOSITORY -cov unit.coverprofile -gha-annotations gha-unit.txt -delta-cov-file delta-cov-unit.txt -target-delta-cov ${TARGET_DELTA_COV})
9696
echo "${REP}"
9797
cat gha-unit.txt
98-
DIFF=$(test -e unit-base.txt && ./gocovdiff -func-cov unit.txt -func-base-cov unit-base.txt || echo "Missing base coverage file")
98+
DIFF=$(test -e unit-base.txt && ./gocovdiff -mod github.com/$GITHUB_REPOSITORY -func-cov unit.txt -func-base-cov unit-base.txt || echo "Missing base coverage file")
9999
TOTAL=$(cat delta-cov-unit.txt)
100100
echo "rep<<EOF" >> $GITHUB_OUTPUT && echo "$REP" >> $GITHUB_OUTPUT && echo "EOF" >> $GITHUB_OUTPUT
101101
echo "diff<<EOF" >> $GITHUB_OUTPUT && echo "$DIFF" >> $GITHUB_OUTPUT && echo "EOF" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)