2023-03-29 22:24:03 -04:00
|
|
|
name: check-and-test
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-and-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-24 23:39:40 -04:00
|
|
|
- uses: actions/checkout@v4
|
2023-03-29 22:24:03 -04:00
|
|
|
- name: setup go
|
2024-02-22 19:36:59 -05:00
|
|
|
uses: https://github.com/actions/setup-go@v5
|
2023-03-29 22:24:03 -04:00
|
|
|
with:
|
|
|
|
go-version: '>=1.20.1'
|
|
|
|
- name: lint and build
|
|
|
|
run: |
|
|
|
|
make clean
|
|
|
|
make vet
|
|
|
|
make lint
|
|
|
|
make fmt-check
|
|
|
|
make misspell-check
|
2023-09-01 11:34:13 -04:00
|
|
|
make docs-check
|
2023-03-29 22:24:03 -04:00
|
|
|
make build
|
|
|
|
env:
|
|
|
|
GOPROXY: https://goproxy.io,direct
|
|
|
|
- name: test and coverage
|
|
|
|
run: |
|
|
|
|
make test
|
|
|
|
make unit-test-coverage
|
|
|
|
env:
|
|
|
|
GOPROXY: https://goproxy.io,direct
|