2023-03-30 07:54:03 +05:30
|
|
|
name: check-and-test
|
|
|
|
|
2024-04-08 22:15:15 +05:30
|
|
|
on:
|
2023-03-30 07:54:03 +05:30
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-and-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-25 09:09:40 +05:30
|
|
|
- uses: actions/checkout@v4
|
2024-04-08 22:15:05 +05:30
|
|
|
- uses: actions/setup-go@v5
|
2023-03-30 07:54:03 +05:30
|
|
|
with:
|
2024-04-08 22:15:05 +05:30
|
|
|
go-version-file: 'go.mod'
|
2023-03-30 07:54:03 +05:30
|
|
|
- name: lint and build
|
|
|
|
run: |
|
|
|
|
make clean
|
|
|
|
make vet
|
|
|
|
make lint
|
|
|
|
make fmt-check
|
|
|
|
make misspell-check
|
2023-09-01 21:04:13 +05:30
|
|
|
make docs-check
|
2023-03-30 07:54:03 +05:30
|
|
|
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
|