From 977497e8dc5ce80ff46702c722028879428fb5af Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Sat, 4 Jun 2022 18:17:48 +0530 Subject: [PATCH] CI: Add Infracost for infrastructure-level cost breakdown (#128) * CI: Add Infracost for infrastructure-level cost breakdown * remove bugs --- .github/workflows/infracost.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/infracost.yml diff --git a/.github/workflows/infracost.yml b/.github/workflows/infracost.yml new file mode 100644 index 00000000..cfcaae61 --- /dev/null +++ b/.github/workflows/infracost.yml @@ -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/