Skip to content

Commit

Permalink
Test against Go 1.13+
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Oct 3, 2020
1 parent 4872445 commit 02144f7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
47 changes: 23 additions & 24 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,34 @@ jobs:
test:
strategy:
matrix:
go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
go-version: [1.13.x, 1.14.x, 1.15.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
GO111MODULE: "on"
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}

- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1

- name: Checkout code
uses: actions/checkout@v1
- name: Download Go modules
run: go mod download

- name: Download Go modules
run: go mod download
- name: Build
run: go build -v ./...

- name: Build
run: go build -v ./...
- name: Test
run: go test ./...

- name: Test
run: go test ./...

- name: Coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go test -race -covermode atomic -coverprofile=profile.cov ./...
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
if: matrix.go-version == '1.14.x' && matrix.platform == 'ubuntu-latest'
- name: Coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go test -race -covermode atomic -coverprofile=profile.cov ./...
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
if: matrix.go-version == '1.14.x' && matrix.platform == 'ubuntu-latest'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ You can find even more official releases [here](https://github.com/muesli/beehiv

### From source

Beehive requires Go 1.11 or higher. Make sure you have a working Go environment.
Beehive requires Go 1.13 or higher. Make sure you have a working Go environment.
See the [install instructions](http://golang.org/doc/install.html).

The recommended way is to fetch the sources and run make.
Expand Down

0 comments on commit 02144f7

Please sign in to comment.