mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-11 21:11:32 +01:00
Add Action check against minimum versions (#575)
This commit is contained in:
committed by
Max Williams
parent
55ff38cc31
commit
c0ae644204
20
.github/workflows/lint.yml
vendored
20
.github/workflows/lint.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
||||
- uses: actions/checkout@master
|
||||
- name: TFLint
|
||||
uses: docker://wata727/tflint
|
||||
|
||||
|
||||
fmt:
|
||||
name: Code Format
|
||||
runs-on: ubuntu-latest
|
||||
@@ -18,7 +18,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- run: terraform fmt --recursive -check=true
|
||||
|
||||
|
||||
docs:
|
||||
name: Docs
|
||||
runs-on: macOS-latest
|
||||
@@ -51,3 +51,19 @@ jobs:
|
||||
terraform validate
|
||||
cd -
|
||||
done
|
||||
|
||||
minimum:
|
||||
name: Minimum version check
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: hashicorp/terraform:0.12.2
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Validate Code
|
||||
env:
|
||||
AWS_REGION: 'us-east-1'
|
||||
TF_WARN_OUTPUT_ERRORS: 1
|
||||
run: |
|
||||
sed -i -e 's/>=/=/' -e 's/ \(\d\+\.\d\+\)"/ \1.0"/' versions.tf
|
||||
terraform init
|
||||
terraform validate -var "region=${AWS_REGION}" -var "vpc_id=vpc-123456" -var "subnets=[\"subnet-12345a\"]" -var "workers_ami_id=ami-123456" -var "cluster_ingress_cidrs=[]" -var "cluster_name=test_cluster"
|
||||
|
||||
@@ -11,7 +11,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
### Added
|
||||
|
||||
- Write your awesome addition here (by @you)
|
||||
- Test against minimum versions specified in `versions.tf` (by @dpiddockcmp)
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user