-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (40 loc) · 1.02 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Testing workflows for aws-robomaker-bundle-support-library
on:
pull_request:
push:
branches:
- master
- dev
schedule:
- cron: '0 0 * * *'
jobs:
test:
env:
GO111MODULE: on
strategy:
matrix:
go-version: [ 1.15.x, 1.16.x ]
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Install Golang
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Dependencies
run: |
go get github.com/mitchellh/gox
go get github.com/golang/mock/gomock
go install github.com/golang/mock/mockgen
- name: Check Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
if: matrix.os == 'ubuntu-latest'
- name: Build
run: |
go build ./...
- name: Generate
run: go generate ./...
- name: Test
run: go test -v -race ./...