JOJ3/.gitea/workflows/test.yaml

27 lines
698 B
YAML

---
name: checks
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: https://gitea.com/BoYanZh/checkout@focs
- name: Setup Go 1.23.1
uses: https://gitea.com/actions/setup-go@v3
with:
go-version: 1.23.1
- name: Display Go version
run: go version
- name: Prepare
run: go env -w GOPROXY=https://goproxy.cn,direct
- name: Build
run: make build
- name: Test
run: |
make prepare-test
make test