without pre build
This commit is contained in:
@@ -5,31 +5,8 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
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:
|
docker:
|
||||||
needs: build
|
name: build and run
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user