Bump aws provider version to 5 #1811
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
on: | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
- 'docs/**' | |
push: | |
paths-ignore: | |
- '*.md' | |
- 'docs/**' | |
branches: | |
- main | |
- release-* | |
schedule: | |
- cron: "0 11 * * 1-5" | |
jobs: | |
lint: | |
name: Linting | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: hashicorp/setup-terraform@v1 | |
with: | |
terraform_version: 1.0.11 | |
- name: 'Terraform Format' | |
run: terraform fmt -check -recursive | |
- name: 'Terraform Init cluster' | |
run: terraform init | |
working-directory: 'examples/cluster' | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
role-skip-session-tagging: true | |
- name: 'Terraform Validate cluster' | |
run: terraform validate | |
working-directory: 'examples/cluster' | |
local-test: | |
name: Run local tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@main | |
- name: 'Install Go' | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17.2 | |
- name: 'Local Tests' | |
run: | | |
cd test | |
go get ./... | |
go test -v ./local_test.go | |
cluster-test: | |
name: Test cluster module | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@main | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
role-skip-session-tagging: true | |
- name: 'Terratest' | |
uses: ./.github/actions/terratest | |
with: | |
args: "-run TestTerraformAwsEksCluster" |