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

2
go.mod
View File

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