Skip to content

Commit

Permalink
build(github/workflow): improve lint and test (#121)
Browse files Browse the repository at this point in the history
* build(github/workflow): improve lint and test

Signed-off-by: Flc゛ <[email protected]>

* build(github/workflow): improve lint and test

Signed-off-by: Flc゛ <[email protected]>

* build(github/workflow): improve lint and test

Signed-off-by: Flc゛ <[email protected]>

---------

Signed-off-by: Flc゛ <[email protected]>
  • Loading branch information
flc1125 authored Feb 27, 2024
1 parent fde3343 commit 69df7cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
cache-dependency-path: ./go.sum
- run: go version

- name: Run tests
run: go test ./... -v -covermode=atomic -race -coverprofile=coverage.txt

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 69df7cb

Please sign in to comment.