diff --git a/.github/workflows/kitchen-tests.yml b/.github/workflows/kitchen-tests.yml new file mode 100644 index 0000000..1c57455 --- /dev/null +++ b/.github/workflows/kitchen-tests.yml @@ -0,0 +1,23 @@ +name: kitchen-tests + +on: [push, workflow_dispatch] + +jobs: + all: + runs-on: ubuntu-latest + container: brownccv/kitchen-terraform:latest + + steps: + - uses: actions/checkout@v1 + - name: Create Credential File + run: | + echo "$GCP_CREDENTIAL_JSON" > /tmp/credentials.json + env: + GCP_CREDENTIAL_JSON: ${{ secrets.GCP_CREDENTIAL_JSON}} + - name: Run Kitchen + run: kitchen test + env: + TF_VAR_billing_account: ${{ secrets.GCP_BILLING_ACCOUNT }} + TF_VAR_org_id: ${{ secrets.GCP_ORG_ID }} + TF_VAR_folder_id: ${{ secrets.GCP_FOLDER_ID }} + GOOGLE_APPLICATION_CREDENTIALS: /tmp/credentials.json diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..338a5b5 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.6.6 diff --git a/main.tf b/main.tf index bb50fb8..28f342b 100644 --- a/main.tf +++ b/main.tf @@ -1,6 +1,6 @@ module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 6.0" + version = "= 8.0.1" name = var.project_name random_project_id = true