Skip to content

Commit

Permalink
build: update go version 1.20 (#69)
Browse files Browse the repository at this point in the history
Resolves #65 

Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
  • Loading branch information
JeyJeyGao committed Feb 22, 2023
1 parent d45999c commit 8ce5b95
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ permissions:

jobs:
build:
strategy:
matrix:
go-version: ['1.20']

name: Build
runs-on: ubuntu-latest
steps:
Expand All @@ -19,10 +23,10 @@ jobs:
with:
fetch-depth: 0

- name: Set up Go
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: ${{ matrix.go-version }}
check-latest: true

- name: Goreleaser
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,48 @@ on: [pull_request]

jobs:
lint:
strategy:
matrix:
go-version: ['1.20']

name: "Lint"
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
steps:
- name: Set up Go
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: golangci-lint
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --fast=false

unit-test:
name: "Unit Test"
build:
strategy:
matrix:
go-version: ['1.20']

name: "Build"
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
steps:
- name: Set up Go 1.19
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Run unit tests
run: go test ./...
- name: Build testing
run: make build
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/Azure/notation-azure-kv

go 1.19
go 1.20

require (
github.com/Azure/azure-sdk-for-go v67.0.0+incompatible
Expand Down

0 comments on commit 8ce5b95

Please sign in to comment.