JOJ3/.gitea/workflows/test.yaml
张泊明518370910136 ac9d3f17ea
Some checks failed
checks / build (push) Failing after 21s
continuous-integration/drone/push Build is passing
feat: use CN mirror
2024-09-19 18:00:24 -04:00

37 lines
1.1 KiB
YAML

---
name: checks
on:
- push
- pull_request
jobs:
build:
container:
image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest
volumes:
- /home/ta/.ssh:/root/.ssh
steps:
- name: Check out repository code
uses: https://gitea.com/BoYanZh/checkout@focs
- name: Setup Go 1.23.1
run: |
wget https://studygolang.com/dl/golang/go1.23.1.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz
rm -rf go1.23.1.linux-amd64.tar.gz
- name: Sanity Check
run: |
ls -lha
whoami
- name: Display Go version
run: go version
- name: Prepare
run: |
go env -w GOPROXY=https://goproxy.cn,direct
chown -R root:root /root/.ssh
- name: Build
run: make build
- name: Test
run: |
make prepare-test
make ci-test