Setup go ci tests
This commit is contained in:
parent
ca20181019
commit
ad2ad1d9df
37
.github/workflows/go-testing.yml
vendored
Normal file
37
.github/workflows/go-testing.yml
vendored
Normal 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 ./...
|
||||
Loading…
x
Reference in New Issue
Block a user