Skip to content

Commit

Permalink
chore(ci) : update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
seipan committed Oct 27, 2023
1 parent 0b41d11 commit ed2fb89
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,28 @@ on:
jobs:

build:
strategy:
matrix:
go-version: ['1.18', '1.19', '1.20', '1.21']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
- name: set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: ${{ matrix.go-version }}

- name: Build
run: go build -v ./...

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

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2

0 comments on commit ed2fb89

Please sign in to comment.