Skip to content

Merge pull request #4 from things-labs/dependabot/go_modules/gopkg.in… #132

Merge pull request #4 from things-labs/dependabot/go_modules/gopkg.in…

Merge pull request #4 from things-labs/dependabot/go_modules/gopkg.in… #132

Workflow file for this run

name: Go
on: [push]
jobs:
build:
name: Build on GO ${{matrix.go-version}}
runs-on: ${{matrix.os}}
strategy:
matrix:
go-version: ["1.14.x", "1.15.x"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set up Go ${{matrix.go-version}}
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go-version}}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Go test osx linux
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
go test -v -benchmem -test.bench=".*" -coverprofile=coverage.txt -covermode=atomic ./...
- name: Go test windows
if: matrix.os == 'windows-latest'
run: |
go test -v -covermode=atomic ./...