chore(deps): use go 1.16 (#1)

* chore(deps): use go 1.16

* workflows: update CI to use go 1.16

Signed-off-by: Rui Chen <rui@chenrui.dev>

Co-authored-by: ddc <jncpp@qq.com>
This commit is contained in:
rui 2021-06-23 00:21:40 -04:00 committed by GitHub
parent ee7249e291
commit ccb0278500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 16 deletions

View File

@ -12,18 +12,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Cache Go modules
go-version: 1.16
- name: Cache Go modules
uses: actions/cache@v2.1.6
with:
path: ~/go/pkg/mod
@ -35,15 +29,13 @@ jobs:
# run: |
# go mod tidy
# go test -v ./...
-
name: Docker Login
- name: Docker Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Run GoReleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
if: success() && startsWith(github.ref, 'refs/tags/')
with:
@ -51,4 +43,3 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/six-ddc/plow
go 1.14
go 1.16
require (
github.com/AdhityaRamadhanus/fasthttpcors v0.0.0-20170121111917-d4c07198763a