Skip to content

Commit

Permalink
Merge pull request #3 from BrownUniversity/add-ci
Browse files Browse the repository at this point in the history
Add ci
  • Loading branch information
mirestrepo authored Jul 14, 2020
2 parents 012d5c1 + ce0c6f7 commit e190adf
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/kitchen-tests.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.6.6
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e190adf

Please sign in to comment.