2022-06-24 03:36:41 -05:00
|
|
|
name: Go build
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-go:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
with:
|
|
|
|
go-version: 1.15
|
2022-06-24 03:50:43 -05:00
|
|
|
cache: true
|
2022-06-24 03:36:41 -05:00
|
|
|
|
2022-06-24 03:50:43 -05:00
|
|
|
- name: Download dependencies
|
|
|
|
run: go mod download
|
2022-06-24 03:36:41 -05:00
|
|
|
|
2022-06-24 03:50:43 -05:00
|
|
|
- name: Build
|
2022-06-24 03:36:41 -05:00
|
|
|
run: go build -v
|
|
|
|
|
2022-06-24 03:50:43 -05:00
|
|
|
- name: Test
|
2022-06-24 03:36:41 -05:00
|
|
|
run: go test -v
|