ci: build & test
This commit is contained in:
parent
8067f53fb7
commit
07ed197567
|
@ -1,21 +1,26 @@
|
||||||
---
|
---
|
||||||
name: Build
|
name: checks
|
||||||
on: [push]
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
container:
|
runs-on: ubuntu-latest
|
||||||
image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: https://gitea.com/BoYanZh/checkout@focs
|
uses: https://gitea.com/BoYanZh/checkout@focs
|
||||||
- name: Sanity Check
|
|
||||||
run: |
|
|
||||||
whoami
|
|
||||||
pwd
|
|
||||||
- name: Setup Go 1.23.1
|
- name: Setup Go 1.23.1
|
||||||
uses: https://gitea.com/actions/setup-go@v3
|
uses: https://gitea.com/actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.23.1
|
go-version: 1.23.1
|
||||||
- name: Display Go version
|
- name: Display Go version
|
||||||
run: 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
|
Loading…
Reference in New Issue
Block a user