Skip to content

[#286] Fix: Terraform plan can't be applied because of VPC endpoint misconfiguration #75

[#286] Fix: Terraform plan can't be applied because of VPC endpoint misconfiguration

[#286] Fix: Terraform plan can't be applied because of VPC endpoint misconfiguration #75

name: Test Generated Project
on:
pull_request:
types: [opened, synchronize]
jobs:
test:
name: Run Tests Generated Project
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install dependencies in .tool-versions
uses: asdf-vm/actions/install@v3
- name: Cache Node npm
id: cache-nodemodules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-infrastructure-templates-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-infrastructure-templates
- name: Install modules
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci
- name: Generate project
run: . ./scripts/generateAdvancedAWS.sh
- name: Run Terraform format
run: terraform fmt -recursive -check
- name: Run trivy scanner
working-directory: aws-advanced-test
run: trivy config .