Skip to content

Commit

Permalink
ci: enhance CI testing workflow and dependencies
Browse files Browse the repository at this point in the history
- Rename GitHub workflow file from `lint.yml` to `testing.yml`
- Add checkout step to the testing workflow
- Specify `go.mod` as the source for the Go version and enable checking for the latest Go version in the testing workflow
- Upgrade the `golangci-lint-action` from version 3 to version 4
- Upgrade the `codecov-action` from version 3 to version 4

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Mar 14, 2024
1 parent 61814ba commit b74d17f
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/lint.yml → .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v5
with:
go-version: "^1"
- name: Checkout repository
uses: actions/checkout@v4
go-version-file: go.mod
check-latest: true

- name: check documentation
run: make embedmd

- name: check golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --verbose
Expand All @@ -45,12 +47,14 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v5
with:
go-version: "^1"
- name: Checkout repository
uses: actions/checkout@v3
go-version-file: go.mod
check-latest: true

- name: testing
env:
Expand All @@ -59,6 +63,6 @@ jobs:
run: make test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: ${{ matrix.os }},go-${{ matrix.go }}

0 comments on commit b74d17f

Please sign in to comment.