30 lines
600 B
YAML
Raw Normal View History

2019-11-28 12:38:02 -04:00
name: Go
on: [push]
jobs:
2019-12-06 13:10:05 -04:00
test:
# name: build
strategy:
matrix:
# go: [1.12.x, 1.13.x]
os: [macOS-latest, windows-latest] # ubuntu-latest
runs-on: ${{ matrix.os }}
2019-11-28 12:38:02 -04:00
steps:
2024-08-26 16:42:12 -07:00
- name: Set up Go 1.23.0
2019-12-06 13:10:05 -04:00
uses: actions/setup-go@v1
with:
2024-08-26 16:42:12 -07:00
go-version: 1.23.0
2019-12-06 13:10:05 -04:00
id: go
2019-11-28 12:38:02 -04:00
2019-12-06 13:10:05 -04:00
- name: Check out code into the Go module directory
uses: actions/checkout@v1
2019-11-28 12:38:02 -04:00
2019-12-06 13:10:05 -04:00
- name: Get dependencies
run: |
go get -v -t -d ./...
2019-11-28 12:38:02 -04:00
2019-12-06 13:10:05 -04:00
- name: Build
run: go build -v .
2020-02-23 11:02:21 -04:00
- name: Test
run: go test -v .