2023-03-30 02:24:03 +00:00
|
|
|
name: check-and-test
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-and-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-26 11:41:34 +00:00
|
|
|
- uses: http://sigyl.com:3000/actions/checkout@v3.5.4
|
|
|
|
with:
|
|
|
|
token: ${{ github.token }}
|
2023-03-30 02:24:03 +00:00
|
|
|
- name: setup go
|
|
|
|
uses: https://github.com/actions/setup-go@v4
|
|
|
|
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 15:34:13 +00:00
|
|
|
make docs-check
|
2023-03-30 02:24:03 +00: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
|