1
0
mirror of https://gitea.com/gitea/tea synced 2024-07-05 01:41:30 +00:00
tea/.gitea/workflows/test-pr.yml

31 lines
647 B
YAML
Raw Normal View History

name: check-and-test
2024-04-08 16:45:15 +00:00
on:
- pull_request
jobs:
check-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2024-04-08 16:45:05 +00:00
- uses: actions/setup-go@v5
with:
2024-04-08 16:45:05 +00:00
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
env:
GOPROXY: https://goproxy.io,direct
- name: test and coverage
run: |
make test
make unit-test-coverage
env:
GOPROXY: https://goproxy.io,direct