container up

This commit is contained in:
zhangchao
2024-10-31 08:55:31 +08:00
parent 770482d05d
commit 9a795f4c2c

View File

@@ -6,10 +6,6 @@ jobs:
name: Build and test name: Build and test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
container: container:
image: golang:latest image: golang:latest
env: env:
@@ -17,6 +13,11 @@ jobs:
GOPROXY: https://goproxy.cn,direct GOPROXY: https://goproxy.cn,direct
ports: ports:
- 8080 - 8080
steps:
- uses: actions/checkout@v4
- name: Build
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