feat: primeira versão básica e funcional para criação de tabelas no DynamoDB #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "🚀 CI Terraform Module Releaser" | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, closed] # Closed required | |
branches: | |
- main | |
permissions: | |
contents: write # Required for to push tags, create release, and push changes to the wiki | |
pull-requests: write # Required to comment on pull request | |
jobs: | |
ci-terraform-dynamodb-table: | |
name: 🛠️ ci-terraform-dynamodb-table | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🔄 Checkout | |
uses: actions/checkout@v4 | |
- name: ⛏️ Terraform Setup | |
uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: 1.10.5 | |
- name: 🍃 Terraform Init | |
run: terraform init | |
working-directory: aws/dynamodb-table | |
- name: ✅ Terraform Validate | |
run: terraform validate | |
working-directory: aws/dynamodb-table | |
release: | |
name: 🚀 terraform-module-releaser | |
runs-on: ubuntu-latest | |
needs: | |
- ci-terraform-dynamodb-table | |
steps: | |
- name: 🔄 Checkout | |
uses: actions/checkout@v4 | |
- name: 🚀 Terraform Module Releaser | |
uses: techpivot/terraform-module-releaser@v1.4.1 | |
with: | |
default-first-tag: v0.0.1 | |
major-keywords: major change,breaking change | |
minor-keywords: feat,feature | |
patch-keywords: fix,hotfix,chore,docs,config,ci | |
terraform-docs-version: v0.19.0 |