Skip to content

feat: Add functionality to prevent deletion of databases across all surfaces, enable Query Insight, and set maintenance window. #159

feat: Add functionality to prevent deletion of databases across all surfaces, enable Query Insight, and set maintenance window.

feat: Add functionality to prevent deletion of databases across all surfaces, enable Query Insight, and set maintenance window. #159

Workflow file for this run

name: terratest
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- 'modules/**'
- 'examples/**'
- 'test/**'
push:
branches:
- main
env:
TERRATEST_GOOGLE_CREDENTIALS: ${{ secrets.TERRATEST_GOOGLE_CREDENTIALS }}
GOOGLE_PROJECT: ${{ secrets.TERRATEST_GOOGLE_PROJECT }}
GCP_SA_EMAIL: ${{ secrets.TERRATEST_GCP_SA_EMAIL }}
TF_VAR_google_project: ${{ secrets.TERRATEST_GOOGLE_PROJECT }}
TF_VAR_google_credentials: ${{ secrets.TERRATEST_GOOGLE_CREDENTIALS }}
TF_VAR_shared_vpc_host_google_credentials: ${{ secrets.TERRATEST_GOOGLE_CREDENTIALS }}
TF_VAR_google_region: ${{ secrets.TERRATEST_GOOGLE_REGION }}
jobs:
terratest:
name: terratest
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Go (1.17)
uses: actions/setup-go@v2
with:
go-version: 1.17
id: go
- name: Login to Google Cloud
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ env.TERRATEST_GOOGLE_CREDENTIALS }}
- name: Set Google Cloud project
run: gcloud config set project $GOOGLE_PROJECT
- name: Run terratest
run: |
make tests
- name: Release
uses: cycjimmy/semantic-release-action@v3
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
extra_plugins: |
@semantic-release/git@10.0.1
@semantic-release/exec@6.0.3
@semantic-release/changelog@6.0.1