Enable action as CI to test/build/release (#26)

Reviewed-on: https://gitea.com/gitea/act_runner/pulls/26
This commit is contained in:
Lunny Xiao
2023-02-24 23:30:09 +08:00
parent 410765b516
commit a4513405b5
4 changed files with 26 additions and 23 deletions

23
.gitea/workflows/test.yml Normal file
View File

@ -0,0 +1,23 @@
name: checks
on:
- push
- pull_request
env:
GOPROXY: https://goproxy.io,direct
jobs:
lint:
name: check and test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20
- uses: actions/checkout@v3
- name: vet checks
run: make vet
- name: build
run: make build
- name: test
run: make test