Skip to content

Commit 115b7f1

Browse files
committed
Update GitHub Actions workflows to use latest action versions
- Updated golangci-lint action from v3 to v4 in golangci.yaml - Updated checkout action from v3 to v4 in gotest.yaml - Updated cache action from v2 to v3 in gotest.yaml - Updated upload-artifact action from v3 to v4 in gotest.yaml
1 parent 462d1fb commit 115b7f1

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
run: |
8787
$(go env GOPATH)/bin/golangci-lint run --verbose --out-format 'checkstyle:golangci_lint.xml' --timeout=300s --new=false --new-from-rev= ./...
8888
89-
- uses: actions/upload-artifact@v3
89+
- uses: actions/upload-artifact@v4
9090
if: ${{ always() }}
9191
with:
9292
name: golangci-report

.github/workflows/gotest.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/setup-go@v3
2323
with:
2424
go-version: ${{ inputs.go }}
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626

2727
- name: Start Redis
2828
if: ${{ inputs.redis != '' }}
@@ -37,7 +37,7 @@ jobs:
3737
mongodb-version: '${{ inputs.mongo }}'
3838

3939
- name: Cache
40-
uses: actions/cache@v2
40+
uses: actions/cache@v3
4141
with:
4242
path: ~/go/pkg/mod
4343
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -67,11 +67,11 @@ jobs:
6767
gotestsum --junitfile ${coveragefile}.xml --raw-command go test ${OPTS} --json -timeout 15m -coverprofile=${coveragefile}.cov ${pkg} ${tags}
6868
done
6969
70-
- uses: actions/upload-artifact@v3
70+
- uses: actions/upload-artifact@v4
7171
with:
7272
name: coverage
7373
path: "*cov"
74-
- uses: actions/upload-artifact@v3
74+
- uses: actions/upload-artifact@v4
7575
if: ${{ always() }}
7676
with:
7777
name: junit

0 commit comments

Comments
 (0)