diff --git a/.github/workflows/acc-test.yml b/.github/workflows/acc-test.yml index dde1742859d..64bdcc9a368 100644 --- a/.github/workflows/acc-test.yml +++ b/.github/workflows/acc-test.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf6e1693819..b2aac402a18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ 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' @@ -34,28 +34,16 @@ jobs: - 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: @@ -63,3 +51,18 @@ jobs: 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/... diff --git a/.github/workflows/cron-ci.yml b/.github/workflows/cron-ci.yml index 56ce146c94c..417b470826a 100644 --- a/.github/workflows/cron-ci.yml +++ b/.github/workflows/cron-ci.yml @@ -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' @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a99abb37fd9..6204a3a41ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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