23 lines
395 B
YAML
23 lines
395 B
YAML
name: Go build
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and test
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: golang:latest
|
|
env:
|
|
GO111MODULE: on
|
|
GOPROXY: https://goproxy.cn,direct
|
|
ports:
|
|
- 8080
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build
|
|
|
|
run: go build -v
|
|
- name: Test with the Go CLI
|
|
run: go test |