Skip to content

Build(deps): bump golang.org/x/crypto from 0.1.0 to 0.17.0 in /test #85

Build(deps): bump golang.org/x/crypto from 0.1.0 to 0.17.0 in /test

Build(deps): bump golang.org/x/crypto from 0.1.0 to 0.17.0 in /test #85

Workflow file for this run

name: 'Terraform'
on:
push:
branches:
- main
pull_request:
jobs:
terraform:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
if: ${{ github.event_name == 'pull_request' }}
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Checkout
uses: actions/checkout@v3
if: ${{ github.event_name == 'push' }}
with:
ref: ${{ github.ref_name }}
- name: Setup terraform
uses: hashicorp/setup-terraform@v1
- name: Terraform Init
run: terraform init
- name: Terraform Format
run: terraform fmt -check -recursive -diff
- name: Render terraform docs and push changes back to PR
uses: terraform-docs/gh-actions@v1
with:
config-file: .terraform-docs.yml
working-dir: .
git-push: "true"
terratest:
needs: ["terraform"]
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup golang
uses: actions/setup-go@v4
with:
cache-dependency-path: test/go.sum
go-version-file: test/go.mod
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::317104979423:role/terraform-20230706095733502200000001
aws-region: eu-west-1
- name: Run tests
run: go test -v -timeout 30m
working-directory: test