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:
parent
ee7249e291
commit
ccb0278500
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue