Files
go_blog/.gitea/workflows/go.yaml
2024-10-30 23:06:35 +08:00

25 lines
523 B
YAML

name: Go build
on: [push]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
- name: Build
container:
image: golang:latest
env:
GO111MODULE: on
GOPROXY: https://goproxy.cn,direct
ports:
- 8080
run: go build -v
- name: Test with the Go CLI
run: go test