Skip to content

Commit

Permalink
setup go with 1.18+ in workfolws
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiChangkuo committed Oct 19, 2022
1 parent 8d4f833 commit cf5d2d7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/acc-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: ">=1.16"
go-version: ">=1.18"

## have checkout merge commit,so just diff base_ref with HEAD
- run: scripts/acc-test.sh "origin/${{github.base_ref}}" > pr-acc-test.log
Expand Down
39 changes: 21 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,40 +26,43 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ">=1.16"
go-version: ">=1.18"

- name: Build
run: make build FLAGS='-mod=readonly'

- name: Vet
run: make vet

# This workflow contains a job called "tfproviderlint"
tfproviderlint:
# The type of runner that the job will run on
golangci:
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# Runs tfproviderlint-github-action
- uses: bflad/tfproviderlint-github-action@master
- name: Set up Go
uses: actions/setup-go@v3
with:
args: -V011=false -V012=false -V013=false -V014=false -R019=false ./...
go-version: ">=1.18"

golangci:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: ">=1.16"
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true

# This workflow contains a job called "tfproviderlint"
tfproviderlint:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs tfproviderlint-github-action
- uses: bflad/tfproviderlint-github-action@master
with:
args: -V011=false -V012=false -V013=false -V014=false -R019=false ./huaweicloud/...
7 changes: 6 additions & 1 deletion .github/workflows/cron-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ">=1.16"
go-version: ">=1.18"

- name: Build
run: make build FLAGS='-mod=readonly'
Expand All @@ -35,6 +35,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ">=1.18"

# Runs tfproviderlint-github-action
- uses: bflad/tfproviderlint-github-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ">=1.16"
go-version: ">=1.18"
-
name: Import GPG key
id: import_gpg
Expand Down

0 comments on commit cf5d2d7

Please sign in to comment.