mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-11 03:26:50 +02: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
|
- uses: actions/checkout@master
|
||||||
- name: TFLint
|
- name: TFLint
|
||||||
uses: docker://wata727/tflint
|
uses: docker://wata727/tflint
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
name: Code Format
|
name: Code Format
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- run: terraform fmt --recursive -check=true
|
- run: terraform fmt --recursive -check=true
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
name: Docs
|
name: Docs
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
@@ -51,3 +51,19 @@ jobs:
|
|||||||
terraform validate
|
terraform validate
|
||||||
cd -
|
cd -
|
||||||
done
|
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
|
### Added
|
||||||
|
|
||||||
- Write your awesome addition here (by @you)
|
- Test against minimum versions specified in `versions.tf` (by @dpiddockcmp)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user