answer/.github/workflows/go_build_test.yml

25 lines
364 B
YAML
Raw Normal View History

2022-10-13 12:17:40 +08:00
name: Go Build Test
2022-10-13 11:55:45 +08:00
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
2022-10-13 12:17:40 +08:00
- name: Go Test Build
2022-10-13 11:55:45 +08:00
run: make clean build