mirror of
https://gitea.com/gitea/tea.git
synced 2025-01-08 17:20:57 +01:00
2fb291c6d4
Reviewed-on: https://gitea.com/gitea/tea/pulls/703 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
27 lines
531 B
YAML
27 lines
531 B
YAML
name: check-and-test
|
|
|
|
on:
|
|
- pull_request
|
|
|
|
jobs:
|
|
check-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
- name: lint and build
|
|
run: |
|
|
make clean
|
|
make vet
|
|
make lint
|
|
make fmt-check
|
|
make misspell-check
|
|
make docs-check
|
|
make build
|
|
- name: test and coverage
|
|
run: |
|
|
make test
|
|
make unit-test-coverage
|