Skip to content

Commit e059290

Browse files
committed
ci: github action updated
actions/cache@v4.0.1 codecov/codecov-action@v4.0.1 golangci-lint v1.56.2
1 parent 15a1f7d commit e059290

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/go.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/checkout@v4
2424

2525
- name: Cache
26-
uses: actions/cache@v4.0.0
26+
uses: actions/cache@v4.0.1
2727
with:
2828
path: |
2929
**/go.sum
@@ -88,9 +88,12 @@ jobs:
8888
TEST_KEY_FILE_LOCATION: ${{ secrets.TEST_KEY_FILE_LOCATION }}
8989
run: go test -v -cover -coverprofile=coverage.txt -covermode=atomic ./...
9090

91-
- name: Upload coverage to Codecov
91+
- name: Upload coverage reports to Codecov
9292
if: github.event_name == 'push'
93-
run: bash <(curl -s https://codecov.io/bash)
93+
uses: codecov/codecov-action@v4.0.1
94+
with:
95+
token: ${{ secrets.CODECOV_TOKEN }}
96+
slug: pilinux/gorest
9497

9598
- name: Update Go report card
9699
if: github.event_name == 'push'

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/checkout@v4
2424

2525
- name: Cache
26-
uses: actions/cache@v4.0.0
26+
uses: actions/cache@v4.0.1
2727
with:
2828
path: |
2929
**/go.sum
@@ -42,13 +42,13 @@ jobs:
4242
uses: golangci/golangci-lint-action@v4
4343
with:
4444
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
45-
version: v1.56.1
45+
version: v1.56.2
4646

4747
# Optional: working directory, useful for monorepos
4848
# working-directory: somedir
4949

5050
# Optional: golangci-lint command line arguments.
51-
args: --timeout 3m --verbose
51+
args: --timeout 5m --verbose
5252

5353
# Optional: show only new issues if it's a pull request. The default value is `false`.
5454
only-new-issues: true

0 commit comments

Comments
 (0)