Skip to content

Commit

Permalink
Merge pull request #12 from seipan/fix/go-ci-version
Browse files Browse the repository at this point in the history
chore(ci) : go-ci version add 1.19 1.20
  • Loading branch information
seipan committed Oct 17, 2023
2 parents 800a4a4 + 07843db commit e02699f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 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.19', '1.20', '1.21']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
- name: set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: '1.21'
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 e02699f

Please sign in to comment.