Skip to content

feat: Add an option to disable auto-upgrade [DEVOP-5736] #1

feat: Add an option to disable auto-upgrade [DEVOP-5736]

feat: Add an option to disable auto-upgrade [DEVOP-5736] #1

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

View workflow run for this annotation

GitHub Actions / repository-terratest

Invalid workflow file

The workflow is not valid. .github/workflows/repository-terratest.yml (Line: 14, Col: 41): Unrecognized named-value: 'TERRATEST_GOOGLE_CREDENTIALS_NETWORK'. Located at position 1 within expression: TERRATEST_GOOGLE_CREDENTIALS_NETWORK
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