Setup go ci tests

This commit is contained in:
sophia 2021-07-20 16:04:20 -05:00 committed by Paul Hinze
parent ca20181019
commit ad2ad1d9df
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

37
.github/workflows/go-testing.yml vendored Normal file
View File

@ -0,0 +1,37 @@
on:
push:
branches:
- main
- 'test-*'
paths:
- 'builtin/**'
- 'cmd/**'
- 'internal/**'
pull_request:
branches:
- main
paths:
- 'builtin/**'
- 'cmd/**'
- 'internal/**'
jobs:
unit-tests:
runs-on: ubuntu-18.04
strategy:
matrix:
go: ['^1.15']
name: Vagrant unit tests on Go
steps:
- name: Code Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go}}
- name: Get dependencies
run: go get -v -t -d ./...
- name: Vet
run: go vet ./...
- name: Test
run: go test ./...