Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ginohu committed Jan 25, 2024
1 parent 75af1dd commit 6c46ebc
Showing 1 changed file with 42 additions and 9 deletions.
51 changes: 42 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,48 @@ on:

jobs:

build:
runs-on: ubuntu-latest
test:
name: Test
strategy:
matrix:
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
go-version: [ "1.19", "1.20", "1.21" ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
- name: setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: '1.20'

- name: Test
go-version: ${{ matrix.go-version }}
- name: test
run: go test -v ./...

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: lint
run: |
make lint
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: measure coverage
run: make cover
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true

0 comments on commit 6c46ebc

Please sign in to comment.