-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GitHub Actions are setup to run for Mac, Linux, and Windows * Linting only happens on Linux as we don't need to repeat this and it is complicated to install on both POSIX and windows systems easily * In the doc.go file the word build was modified to b because the go toolchain on Windows (only windows) was considering the comment to be a malformed build comment. It was misdetecting it. * Travis and Appveyor configuration have been removed
- Loading branch information
1 parent
7b03774
commit a1ba742
Showing
4 changed files
with
27 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
on: [push, pull_request] | ||
name: Test | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
go-version: [1.12.x, 1.13.x] | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
- name: Install golangci-lint | ||
if: runner.os == 'Linux' | ||
run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1 | ||
- name: Lint | ||
if: runner.os == 'Linux' | ||
run: $(go env GOPATH)/bin/golangci-lint run | ||
- name: Test | ||
env: | ||
GO111MODULE: on | ||
run: go test -cover . |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters