Skip to content

Commit

Permalink
Run test with go 1.16.X (#1028)
Browse files Browse the repository at this point in the history
* Run test with go 1.16.X

* Fix min required go version

* Add go tip

* Update .github/workflows/security.yml

Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>

Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
  • Loading branch information
Sergio Andrés Virviescas Santana and erikdubbelboer authored May 17, 2021
1 parent ffa0cab commit fa3e5d8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ jobs:
test:
strategy:
matrix:
go-version: [1.13.x, 1.14.x, 1.15.x]
go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x]
platform: [ubuntu-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@v2
- name: Security
run: go get github.com/securego/gosec/cmd/gosec; `go env GOPATH`/bin/gosec -exclude=G104,G304 ./...
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Security
run: go get github.com/securego/gosec/cmd/gosec; `go env GOPATH`/bin/gosec -exclude=G104,G304 ./...
18 changes: 6 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,31 @@ os:
- osx
- windows
go:
- 1.16.x
- 1.15.x
- 1.14.x
- 1.13.x
- 1.12.x
- tip

script:
- go test -v ./...

env:
global:
secure: "v/F0oI9zE9mcpEp4AVdHzSSHbe5ZFtH6B0i/BiUXKdQRQ10+JMPDOFRJQti7yxjMwltyd/QSFmR50Fl108sQYpo4xdlEXMHp2Y6OAN6crrp6PuHbLYgDWu3df/cH7/BqDyIq1uX8KZEeQssnygYN8hN4tpJCUg+NIb40Lm57Zsodt8DVjjyDWQQFDL7soNyAwGwQIqEyJsn+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wbmRe2AcOKRl4y7pZsGYhJhqdue1mucUYO/e2QeBZJGkqqG+zF5AW0v8x29BHvMwViAonc8o9eelkJ8khYzc/Qeq05pZnR/N/Pqfc+68k='

before_install:
- go get -t -v ./...

jobs:
allow_failures:
- go: tip

include:
- stage: cross compilation
os:
- linux
go:
- 1.15.x
script:
- GOOS=linux go build
- GOOS=darwin go build
Expand All @@ -41,8 +44,6 @@ jobs:
- stage: cross compilation
os:
- osx
go:
- 1.15.x
script:
- GOOS=linux go build
- GOOS=darwin go build
Expand All @@ -51,23 +52,16 @@ jobs:
- stage: race detector
os:
- linux
go:
- 1.15.x
script:
- go test -race -v ./...
- stage: race detector
os:
- osx
go:
- 1.15.x
script:
- go test -race -v ./...
- stage: race detector
arch: ppc64le
os:
- linux
go:
- 1.15.x
script:
- go test -race -v ./...

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/valyala/fasthttp

go 1.11
go 1.12

require (
github.com/andybalholm/brotli v1.0.2
Expand Down

0 comments on commit fa3e5d8

Please sign in to comment.