Skip to content

feat(test): add integration test suite for CloudFormation template validation #5

feat(test): add integration test suite for CloudFormation template validation

feat(test): add integration test suite for CloudFormation template validation #5

Workflow file for this run

name: Integration Tests
on:
pull_request:
paths-ignore:
- "*.md"
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- name: Start LocalStack
run: docker compose up -d
- name: Install plugin dependencies
run: npm install --legacy-peer-deps
- name: Install fixture dependencies
run: |
for dir in fixtures/*/; do
npm install --legacy-peer-deps --prefix "$dir"
done
- name: Wait for LocalStack
run: |
echo "Waiting for LocalStack to be ready..."
for i in $(seq 1 30); do
if curl -s http://localhost:4566/_localstack/health | grep -q '"cloudformation": "available"'; then
echo "LocalStack is ready"
exit 0
fi
sleep 2
done
echo "LocalStack did not become ready in time"
exit 1
- name: Deploy fixtures
run: npm run test:integration