build with golang container
This commit is contained in:
@@ -13,6 +13,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: '1.21.x'
|
go-version: '1.21.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
container:
|
||||||
|
image: golang:latest
|
||||||
|
env:
|
||||||
|
GO111MODULE: on
|
||||||
|
GOPROXY: https://goproxy.cn,direct
|
||||||
|
ports:
|
||||||
|
- 8080
|
||||||
run: go build -v
|
run: go build -v
|
||||||
- name: Test with the Go CLI
|
- name: Test with the Go CLI
|
||||||
run: go test
|
run: go test
|
||||||
Reference in New Issue
Block a user