Skip to content

feat: chat

feat: chat #14

Workflow file for this run

name: PR
on:
pull_request:
workflow_dispatch:
permissions:
id-token: write # This is required for requesting the JWT
contents: write # This is required for actions/checkout
packages: write
pull-requests: write
jobs:
builds:
concurrency:
# Cancel in progress for PR open and close
group: builds-${{ github.event.number || 'latest' }}
cancel-in-progress: true
uses: ./.github/workflows/.builds.yml
with:
tags: |
${{ github.event.number || 'manual' }}
latest
plan-stack:
name: Plan Stack
concurrency:
group: plan-stack-${{ github.event.number || 'latest' }}
cancel-in-progress: false
uses: ./.github/workflows/.deploy_stack.yml
with:
environment_name: tools
command: plan
tag: ${{ github.event.number || 'latest' }}
app_env: ${{ github.event.number || 'latest' }} # ephermal, prefixed for easy clean up of PR resources in s3 and dynamodb generated by terraform
secrets: inherit
lint:
name: Lint
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/cache@v4
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: ubuntu-tflint-${{ hashFiles('.tflint.hcl') }}
- uses: terraform-linters/setup-tflint@v4
name: Setup TFLint
with:
tflint_version: v0.52.0
- name: Show version
run: tflint --version
- name: Init TFLint
run: tflint --init
env:
# https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting
GITHUB_TOKEN: ${{ github.token }}
- name: Run TFLint
run: tflint -f compact
deploy-to-tools:
name: Deploy to Tools
#needs: builds
if: (github.event_name == 'workflow_dispatch')
concurrency:
group: deploy-tools-${{ github.event.number || 'latest' }}
cancel-in-progress: false
uses: ./.github/workflows/.deploy_stack.yml
with:
environment_name: tools
command: apply
tag: manual
app_env: tools
secrets: inherit