fix: Marks project.region_usage_restrictions
as OptionalComputed to avoid provider upgrade errors
#5114
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Code Health' | |
# Set of validations run on each pull request and merged commits to master. | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths | |
- '*.md' | |
- 'examples/**' | |
- 'LICENSE' | |
pull_request: {} | |
workflow_dispatch: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 | |
with: | |
go-version-file: 'go.mod' | |
- name: Build | |
run: make build | |
unit-test: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write # Needed by sticky-pull-request-comment | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 | |
with: | |
go-version-file: 'go.mod' | |
- name: Unit Test | |
run: make test | |
lint: | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- name: Install Go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 | |
with: | |
go-version-file: 'go.mod' | |
cache: false # see https://github.com/golangci/golangci-lint-action/issues/807 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 | |
with: | |
version: v1.57.2 | |
- name: actionlint | |
run: make tools && actionlint -verbose -color | |
shell: bash | |
website-lint: | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 | |
with: | |
go-version-file: 'go.mod' | |
- name: website lint | |
run: make tools && make website-lint | |
shellcheck: | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- name: Run ShellCheck | |
uses: bewuethr/shellcheck-action@d01912909579c4b1a335828b8fca197fbb8e0aa4 | |
call-acceptance-tests-workflow: | |
needs: [build, lint, shellcheck, unit-test, website-lint] | |
secrets: inherit | |
uses: ./.github/workflows/acceptance-tests.yml |