From 07ed197567dee592dbe7953808e71465ced26fe2 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Sun, 15 Sep 2024 22:38:02 -0400 Subject: [PATCH] ci: build & test --- .gitea/workflows/{build.yaml => test.yaml} | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) rename .gitea/workflows/{build.yaml => test.yaml} (55%) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/test.yaml similarity index 55% rename from .gitea/workflows/build.yaml rename to .gitea/workflows/test.yaml index 2bf5c91..53d4f59 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/test.yaml @@ -1,21 +1,26 @@ --- -name: Build -on: [push] +name: checks +on: + - push + - pull_request jobs: build: - container: - image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest + runs-on: ubuntu-latest steps: - name: Check out repository code uses: https://gitea.com/BoYanZh/checkout@focs - - name: Sanity Check - run: | - whoami - pwd - 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