2022-10-10 11:12:22 +00:00
|
|
|
# This workflow will build a golang project
|
|
|
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
|
|
|
|
|
|
2020-03-17 11:17:19 +00:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
2020-07-13 12:12:41 -07:00
|
|
|
branches: [ $default-branch ]
|
2020-03-17 11:17:19 +00:00
|
|
|
pull_request:
|
2020-07-13 12:12:41 -07:00
|
|
|
branches: [ $default-branch ]
|
2020-03-17 11:17:19 +00:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
2024-01-03 02:09:21 -05:00
|
|
|
- uses: actions/checkout@v4
|
2020-03-17 11:17:19 +00:00
|
|
|
|
2021-01-05 11:47:18 -05:00
|
|
|
- name: Set up Go
|
2023-06-19 11:47:56 +02:00
|
|
|
uses: actions/setup-go@v4
|
2020-03-17 11:17:19 +00:00
|
|
|
with:
|
2023-06-19 11:47:56 +02:00
|
|
|
go-version: '1.20'
|
2020-03-17 11:17:19 +00:00
|
|
|
|
|
|
|
|
- name: Build
|
2020-11-24 21:16:36 +01:00
|
|
|
run: go build -v ./...
|
2020-04-14 18:10:05 +07:00
|
|
|
|
|
|
|
|
- name: Test
|
2020-11-24 21:16:36 +01:00
|
|
|
run: go test -v ./...
|