mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-25 20:11:36 +01:00
0869c15a6c
As title, then we could potentially start ingesting these in the docs repo as they are expanded. Reviewed-on: https://gitea.com/gitea/tea/pulls/565 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: jolheiser <john.olheiser@gmail.com> Co-committed-by: jolheiser <john.olheiser@gmail.com>
33 lines
696 B
YAML
33 lines
696 B
YAML
name: check-and-test
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
check-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- 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
|
|
make docs-check
|
|
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
|