Skip to content

Commit

Permalink
Merge branch 'main' into first-version
Browse files Browse the repository at this point in the history
  • Loading branch information
jnonino authored Sep 20, 2023
2 parents 9dc944d + 0a4e2c2 commit 0b57176
Showing 1 changed file with 14 additions and 35 deletions.
49 changes: 14 additions & 35 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
release:
types: [published]

env:
DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: localstack
AWS_SECRET_ACCESS_KEY: localstack

jobs:
check-format:
runs-on: ubuntu-latest
Expand All @@ -18,24 +23,7 @@ jobs:
- name: Terraform Format Check
run: terraform fmt -check -recursive -diff

validate:
runs-on: ubuntu-latest
container: hashicorp/terraform
strategy:
matrix: {
dir: ['examples/test']
}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Terraform Init
run: terraform init -upgrade
working-directory: ${{ matrix.dir }}
- name: Terraform Validate
run: terraform validate
working-directory: ${{ matrix.dir }}

mock-plan:
validations:
runs-on: ubuntu-latest
container: hashicorp/terraform
strategy:
Expand All @@ -55,24 +43,15 @@ jobs:
- name: Terraform Init
run: terraform init -upgrade
working-directory: ${{ matrix.dir }}
- name: Terraform Validate
run: terraform validate
working-directory: ${{ matrix.dir }}
- name: Terraform Plan (Mock)
run: terraform plan
working-directory: ${{ matrix.dir }}

infracost:
runs-on: ubuntu-latest
name: Show infracost diff
strategy:
matrix: {
dir: ['examples/test']
}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Run infracost diff
uses: infracost/infracost-gh-action@master
env:
INFRACOST_API_KEY: ${{ secrets.INFRACOST_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Infracost
uses: infracost/actions/setup@v2
with:
path: ${{ matrix.dir }}
api-key: ${{ secrets.INFRACOST_API_KEY }}
- name: Generate Infracost cost estimate
run: infracost breakdown --path ${{ matrix.dir }}

0 comments on commit 0b57176

Please sign in to comment.