feat: Add an option to disable auto-upgrade [DEVOP-5736] #1
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: repository-terratest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
env: | ||
TERRATEST_GOOGLE_CREDENTIALS_NETWORK: ${{TERRATEST_GOOGLE_CREDENTIALS_NETWORK}} | ||
Check failure on line 14 in .github/workflows/repository-terratest.yml GitHub Actions / repository-terratestInvalid workflow file
|
||
jobs: | ||
repository-terratest: | ||
name: repository-terratest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Set up Go (1.23) | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.23 | ||
id: go | ||
- name: Install Terraform | ||
uses: hashicorp/setup-terraform@v3 | ||
with: | ||
terraform_version: "1.9.0" | ||
- name: Run terratest | ||
run: | | ||
cd test | ||
go mod tidy | ||
go mod download | ||
go test -v -timeout 60m | ||
- name: Release | ||
if: github.event_name == 'push' | ||
uses: cycjimmy/semantic-release-action@v4 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
extra_plugins: | | ||
@semantic-release/git@10.0.1 | ||
@semantic-release/exec@6.0.2 | ||
@semantic-release/changelog@6.0.1 |