Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update go version 1.20 #69

Merged
merged 3 commits into from
Feb 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
JeyJeyGao marked this conversation as resolved.
Show resolved Hide resolved
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