mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-05 19:32:53 +02:00
Switch CI to Actions and use Goreleaser (#536)
Reviewed-on: https://gitea.com/gitea/tea/pulls/536 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-committed-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:

committed by
techknowlogick

parent
cfce25f0a7
commit
b705188599
31
.gitea/workflows/test-pr.yml
Normal file
31
.gitea/workflows/test-pr.yml
Normal file
@ -0,0 +1,31 @@
|
||||
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 build
|
||||
env:
|
||||
GOPROXY: https://goproxy.io,direct
|
||||
- name: test and coverage
|
||||
run: |
|
||||
make test
|
||||
make unit-test-coverage
|
||||
env:
|
||||
GOPROXY: https://goproxy.io,direct
|
Reference in New Issue
Block a user