Skip to content

ci: updated workflows for pull request and merge to main #7

ci: updated workflows for pull request and merge to main

ci: updated workflows for pull request and merge to main #7

Workflow file for this run

name: Pull Request Workflow
on:
pull_request:
branches:
- main
jobs:
validate-template-code:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install AWS SAM CLI
run: |
pip install --user aws-sam-cli
- name: Validate SAM Templates
run: |
for template in $(find . -name "*.yaml" -o -name "*.yml" -not -path ".github/*"); do
echo "Validating template: $template"
sam validate --template-file "$template" --region us-east-2 --lint
done
shell: bash