Skip to content

Commit

Permalink
CI: Add Infracost for infrastructure-level cost breakdown (#128)
Browse files Browse the repository at this point in the history
* CI: Add Infracost for infrastructure-level cost breakdown

* remove bugs
  • Loading branch information
HarshCasper committed Jun 4, 2022
1 parent 720dee7 commit 977497e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/infracost.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Infrastructure Cost breakdown

on:
pull_request:
paths:
- 'layered/main.tf'

jobs:
infracost:
name: Show Infracost diff
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Run infracost diff
uses: infracost/infracost-gh-action@master
env:
INFRACOST_API_KEY: ${{ secrets.INFRACOST_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: layered/

0 comments on commit 977497e

Please sign in to comment.