|
| 1 | +name: Example-Multiple-Containers |
| 2 | +on: [push] |
| 3 | +jobs: |
| 4 | + check-format: |
| 5 | + runs-on: ubuntu-latest |
| 6 | + container: hashicorp/terraform |
| 7 | + steps: |
| 8 | + - name: Checkout repository |
| 9 | + uses: actions/checkout@v3 |
| 10 | + - run: terraform fmt -check -recursive -diff |
| 11 | + |
| 12 | + validate: |
| 13 | + runs-on: ubuntu-latest |
| 14 | + container: hashicorp/terraform |
| 15 | + steps: |
| 16 | + - name: Checkout repository |
| 17 | + uses: actions/checkout@v3 |
| 18 | + - name: Terraform Init |
| 19 | + run: terraform init |
| 20 | + working-directory: examples/multiple-containers |
| 21 | + - name: Terraform Validate |
| 22 | + run: terraform validate |
| 23 | + working-directory: examples/multiple-containers |
| 24 | + |
| 25 | + mock-plan: |
| 26 | + runs-on: ubuntu-latest |
| 27 | + container: hashicorp/terraform |
| 28 | + steps: |
| 29 | + - name: Checkout repository |
| 30 | + uses: actions/checkout@v3 |
| 31 | + - name: Terraform Init |
| 32 | + run: terraform init |
| 33 | + working-directory: examples/multiple-containers |
| 34 | + - name: Terraform Plan (Mock) |
| 35 | + run: terraform plan |
| 36 | + working-directory: examples/multiple-containers |
| 37 | + |
| 38 | + infracost: |
| 39 | + runs-on: ubuntu-latest |
| 40 | + name: Show infracost diff |
| 41 | + steps: |
| 42 | + - name: Check out repository |
| 43 | + uses: actions/checkout@v3 |
| 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/multiple-containers |
0 commit comments