Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Commit 666f938

Browse files
authored
Terraform tests ChatOps shared workflow (#34)
* Terraform tests chatops * fix review comments / fix docs * rename to terratest * fix docs * pass pat * fix docs
1 parent cab876a commit 666f938

File tree

5 files changed

+59
-4
lines changed

5 files changed

+59
-4
lines changed

.github/workflows/ci-codeowners.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ name: |-
1010
workflow_call:
1111
1212
jobs:
13-
cd:
13+
ci-codeowners:
1414
uses: cloudposse/github-actions-workflows/.github/workflows/ci-codeowners-full.yml@main
15+
with:
16+
is_fork: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
1517
```
1618
on:
1719
workflow_call:

.github/workflows/ci-readme.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ name: |-
1515
contents: read
1616
1717
jobs:
18-
cd:
18+
ci-readme:
1919
uses: cloudposse/github-actions-workflows/.github/workflows/ci-readme.yml@main
2020
with:
2121
suggestions: true
22+
filter-mode: diff_context
2223
```
2324
on:
2425
workflow_call:
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: |-
2+
CI - Terraform ChatOps
3+
4+
Trigger terraform tests using ChatOps
5+
6+
### Usage
7+
```yaml
8+
name: Terraform ChatOps
9+
on:
10+
workflow_call:
11+
12+
permissions:
13+
pull-requests: write
14+
id-token: write
15+
contents: read
16+
17+
jobs:
18+
ci-terraform-chatops:
19+
uses: cloudposse/github-actions-workflows/.github/workflows/ci-terraform-chatops.yml@main
20+
secrets:
21+
github_access_token: $\{\{ secrets.REPO_ACCESS_TOKEN \}\}
22+
```
23+
on:
24+
workflow_call:
25+
inputs:
26+
runs-on:
27+
description: "Overrides job runs-on setting (json-encoded list)"
28+
type: string
29+
required: false
30+
default: '["ubuntu-latest"]'
31+
secrets:
32+
github_access_token:
33+
description: "GitHub API token"
34+
required: true
35+
36+
jobs:
37+
terratest:
38+
runs-on: ${{ fromJSON(inputs.runs-on) }}
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v3
42+
43+
- uses: cloudposse/actions/github/slash-command-dispatch@0.33.0
44+
with:
45+
token: ${{ secrets.github_access_token }}
46+
repository: cloudposse/actions
47+
commands: terratest
48+
permission: triage
49+
issue-type: pull-request
50+
reactions: false

.github/workflows/ci-terraform.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ name: |-
1515
contents: read
1616
1717
jobs:
18-
cd:
18+
ci-terraform:
1919
uses: cloudposse/github-actions-workflows/.github/workflows/ci-terraform.yml@main
2020
with:
2121
suggestions: true
22+
filter-mode: diff_context
2223
```
2324
on:
2425
workflow_call:

.github/workflows/controller-labels.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ name: |-
1313
jobs:
1414
label:
1515
uses: cloudposse/github-actions-workflows/.github/workflows/controller-labels.yml@main
16-
16+
with:
17+
labels: ['ready-for-review']
1718
```
1819
1920
on:

0 commit comments

Comments
 (0)