Skip to content

Commit

Permalink
standardised the module
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohan committed Jul 7, 2021
1 parent 8b71107 commit 0b8a2e0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
with:
status: ${{ job.status }}
fields: repo,author
author_name: 'CloudDrove'
author_name: 'CloudDrove Inc.'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
uses: actions/checkout@v2.3.4

- name: 'Terraform Format'
uses: 'clouddrove/github-actions@v7.0'
uses: 'clouddrove/github-actions@v8.0'
with:
actions_subcommand: 'fmt'
- name: 'Terraform Format'
uses: 'clouddrove/github-actions@v7.0'
uses: 'clouddrove/github-actions@v8.0'
with:
actions_subcommand: 'fmt'

Expand All @@ -36,19 +36,19 @@ jobs:
aws-region: us-east-2

- name: 'Terraform init'
uses: 'clouddrove/github-actions@v7.0'
uses: 'clouddrove/github-actions@v8.0'
with:
actions_subcommand: 'init'
tf_actions_working_dir: ./_example/event_bus_archive

- name: 'Terraform validate for event_bus_archive'
uses: 'clouddrove/github-actions@v7.0'
uses: 'clouddrove/github-actions@v8.0'
with:
actions_subcommand: 'validate'
tf_actions_working_dir: ./_example/event_bus_archive

- name: 'Terraform plan for event_bus_archive'
uses: 'clouddrove/github-actions@v7.0'
uses: 'clouddrove/github-actions@v8.0'
with:
actions_subcommand: 'plan'
tf_actions_working_dir: ./_example/event_bus_archive
Expand All @@ -68,19 +68,19 @@ jobs:
aws-region: us-east-2

- name: 'Terraform init'
uses: 'clouddrove/github-actions@v7.0'
uses: 'clouddrove/github-actions@v8.0'
with:
actions_subcommand: 'init'
tf_actions_working_dir: ./_example/event_rule_target

- name: 'Terraform validate for event_rule_target'
uses: 'clouddrove/github-actions@v7.0'
uses: 'clouddrove/github-actions@v8.0'
with:
actions_subcommand: 'validate'
tf_actions_working_dir: ./_example/event_rule_target

- name: 'Terraform plan for event_rule_target'
uses: 'clouddrove/github-actions@v7.0'
uses: 'clouddrove/github-actions@v8.0'
with:
actions_subcommand: 'plan'
tf_actions_working_dir: ./_example/event_rule_target
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
with:
status: ${{ job.status }}
fields: repo,author
author_name: 'CloudDrove Inc'
author_name: 'CloudDrove Inc.'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/terratest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:

- name: 'Checkout'
uses: actions/checkout@master
uses: actions/checkout@v2.3.4

- name: Configure AWS Credentials
uses: clouddrove/configure-aws-credentials@v1
Expand All @@ -21,12 +21,21 @@ jobs:
aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }}
aws-region: us-east-2

- name: 'Terratest'
- name: 'Terratest for event_bus_archive'
if: ${{ github.event.label.name == 'terratest' }}
uses: 'clouddrove/github-actions@v4.0'
uses: 'clouddrove/github-actions@v8.0'
with:
actions_subcommand: 'terratest'
tf_actions_working_dir: '_test'
tf_actions_working_dir: '_test/event_bus_archive'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'Terratest for event_rule_target'
if: ${{ github.event.label.name == 'terratest' }}
uses: 'clouddrove/github-actions@v8.0'
with:
actions_subcommand: 'terratest'
tf_actions_working_dir: '_test/event_rule_target'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -35,7 +44,7 @@ jobs:
with:
status: ${{ job.status }}
fields: repo,author
author_name: 'CloudDrove'
author_name: 'CloudDrove Inc.'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
Expand Down

0 comments on commit 0b8a2e0

Please sign in to comment.