JOJ3/.gitea/workflows/test.yaml
张泊明518370910136 ce92afe037
Some checks failed
checks / build (push) Failing after 48s
continuous-integration/drone/push Build is passing
ci: change GOPROXY
2024-09-19 18:36:11 -04:00

42 lines
1.3 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/actions/.ssh:/root/.ssh
steps:
- name: Check out repository code
uses: https://gitea.com/BoYanZh/checkout@focs
- name: Setup Go 1.23.1
run: |
wget -q 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
echo "PATH=$PATH:/usr/local/go/bin" >> $GITHUB_ENV
- name: Sanity Check
run: |
ls -lha
ls -lha ~/.ssh
whoami
echo $PATH
- name: Display Go version
run: go version
- name: Prepare
run: |
go env -w GO111MODULE=on
go env -w GOPROXY=https://gocenter.io,direct
chown -R root:root /root/.ssh
- name: Build
run: make build
- name: Test
run: |
make prepare-test
make ci-test