Skip to content

feat: prune lambda versions #40

feat: prune lambda versions

feat: prune lambda versions #40

Workflow file for this run

name: Pull Request
on:
pull_request:
types:
[
opened,
reopened,
synchronize,
review_requested,
ready_for_review,
edited,
]
jobs:
check-pr-title:
runs-on: ubuntu-latest
env:
PR_TITLE: ${{ github.event.pull_request.title }}
ALLOWED_PREFIXES: "feat: chore: fix: !feat:"
steps:
- name: Fail if PR title does not start with an allowed prefix
run: |
echo "PR title: $PR_TITLE"
for prefix in $ALLOWED_PREFIXES; do
if [[ "$PR_TITLE" == "$prefix"* ]]; then
echo "✅ PR title is valid."
exit 0
fi
done
echo "::error::❌ PR title must start with one of: $ALLOWED_PREFIXES"
exit 1
check:
needs: check-pr-title
permissions:
pull-requests: read
contents: read
uses: ./.github/workflows/get_changes.yml
with:
ref: ${{ github.sha }}
secrets: inherit
format-github:
needs: check
runs-on: ubuntu-latest
if: ${{ needs.check.outputs.github == 'true' }}
name: Run github formatting checks
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: raven-actions/actionlint@v2
with:
shellcheck: false
pyflakes: false
format-terragrunt:
needs: check
runs-on: ubuntu-latest
if: ${{ needs.check.outputs.terragrunt == 'true' }}
name: Run terragrunt formatting checks
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v3
- uses: hashicorp/setup-terraform@v3
- uses: autero1/action-terragrunt@v1.3.2
with:
terragrunt_version: 0.45.10
- name: Terraform fmt check
run: terraform fmt -check -recursive
working-directory: infra
- name: Terragrunt hclfmt check
run: terragrunt hclfmt --terragrunt-check
working-directory: infra
build-backend:
needs: check
runs-on: ubuntu-latest
if: ${{ needs.check.outputs.backend == 'true' }}
name: Run backend build
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v3
- name: Run backend build
run: just backend-build