without pre build

This commit is contained in:
2024-10-31 23:12:25 +08:00
parent 41b21fac93
commit 0aa07af0d4

View File

@@ -5,31 +5,8 @@ on:
- master
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://gitea.com/actions/checkout@v4
- name: Set up Go
uses: https://gitea.com/actions/setup-go@v3
with:
go-version: 1.21
- name: Set GOPROXY and GO111MODULES
run: |
echo "GOPROXY=https://goproxy.cn,direct" >> $GITEA_ENV
echo "GO111MODULES: on" >> $GITEA_ENV
- name: Build project
run: |
go build -v ./...
- name: Test with the Go CLI
run: go test
docker:
needs: build
name: build and run
runs-on: ubuntu-latest
steps: