Skip to content

Commit e39ec6c

Browse files
authored
Add infracost (#8)
1 parent e72b655 commit e39ec6c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/pipeline.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: terraform
1+
name: Terraform
22
on: [push]
33
jobs:
44
check-format:
@@ -34,3 +34,17 @@ jobs:
3434
- name: Terraform Plan (Mock)
3535
run: terraform plan
3636
working-directory: examples/test
37+
38+
infracost:
39+
runs-on: ubuntu-latest
40+
name: Show infracost diff
41+
steps:
42+
- name: Check out repository
43+
uses: actions/checkout@v2
44+
- name: Run infracost diff
45+
uses: infracost/infracost-gh-action@master
46+
env:
47+
INFRACOST_API_KEY: ${{ secrets.INFRACOST_API_KEY }}
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
with:
50+
path: examples/test

0 commit comments

Comments
 (0)