Skip to content

Commit

Permalink
feat: Add an option to disable auto-upgrade [DEVOP-5736]
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagart-cactus committed Jan 22, 2025
1 parent 624823c commit 520b89a
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/repository-terratest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: repository-terratest
permissions:
contents: write
pull-requests: write
on:
pull_request:
branches:
- main
push:
branches:
- main

env:
TERRATEST_GOOGLE_CREDENTIALS_STORAGE: ${{ secrets.TERRATEST_GOOGLE_CREDENTIALS_STORAGE }}
TERRATEST_GOOGLE_PROJECT_STORAGE: ${{ secrets.TERRATEST_GOOGLE_PROJECT_STORAGE }}

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

0 comments on commit 520b89a

Please sign in to comment.