Bump github.com/aws/aws-sdk-go from 1.53.21 to 1.54.4 in /tests #271
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: Test PR | |
on: | |
pull_request: | |
jobs: | |
lint-validate: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hashicorp/setup-terraform@v3 | |
- name: Init | |
run: terraform init | |
- name: Validate | |
run: terraform validate | |
- name: tfsec | |
uses: aquasecurity/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
- name: Setup TFLint | |
uses: terraform-linters/setup-tflint@v4 | |
- name: Install tflint plugins | |
run: tflint --init | |
- name: Lint Terraform files | |
run: tflint | |
terratest: | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: tests | |
services: | |
localstack: | |
image: localstack/localstack | |
ports: | |
- 4566:4566 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_wrapper: false | |
- uses: actions/setup-go@v5 | |
- run: cp mocks/mock_provider.tf ../ | |
- run: terraform -chdir=.. init | |
- name: terratest | |
run: go test | |
dependabot: | |
needs: [lint-validate, terratest] | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Enable auto-merge for Dependabot PRs | |
run: gh pr merge --auto --rebase "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |