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