-
Notifications
You must be signed in to change notification settings - Fork 1.2k
37 lines (35 loc) · 935 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
strategy:
matrix:
go: [ '1.19.x', '1.20.x', '1.21.x', '1.22.x' ]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: deps
run: make deps
- name: static program analysis
run: |
export PATH=$PATH:$(go env GOPATH)/bin # https://github.com/actions/setup-go/issues/14
echo "PATH: $PATH"
echo "GOPATH: $GOPATH"
make fmt-check lint vet
env:
GOPATH: ${{ runner.workspace }}
- name: build
run: make build
- name: test
run: make test
- name: coverage
run: bash <(curl -s https://codecov.io/bash)