Skip to content

Commit

Permalink
Adding github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfarina committed Dec 7, 2019
1 parent 7b03774 commit 1db14a7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yaml
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 .
1 change: 1 addition & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// A test comment
/*
Package semver provides the ability to work with Semantic Versions (http://semver.org) in Go.
Expand Down

0 comments on commit 1db14a7

Please sign in to comment.