Basic workflow (#5)
* Basic workflow * pr validation * correct randon version
This commit is contained in:
Родитель
6e3b64dbd8
Коммит
1c80853a5f
|
@ -0,0 +1,23 @@
|
|||
name: PR Validation
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: TF Validate
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: hashicorp/setup-terraform@v1
|
||||
|
||||
- name: Terraform fmt
|
||||
id: fmt
|
||||
run: terraform fmt -check
|
||||
|
||||
- name: Terraform Init
|
||||
id: init
|
||||
run: terraform init
|
||||
|
||||
- name: Terraform Validate
|
||||
id: validate
|
||||
run: terraform validate -no-color
|
|
@ -48,13 +48,13 @@ You can find a list bellow of all the resources that are currently implemented.
|
|||
|
||||
| Name | Version |
|
||||
|------|---------|
|
||||
| random | ~>2.2 |
|
||||
| random | ~> 2.2 |
|
||||
|
||||
## Providers
|
||||
|
||||
| Name | Version |
|
||||
|------|---------|
|
||||
| random | ~>2.2 |
|
||||
| random | ~> 2.2 |
|
||||
|
||||
## Inputs
|
||||
|
||||
|
|
2
main.tf
2
main.tf
|
@ -1,5 +1,5 @@
|
|||
provider "random" {
|
||||
version = "~>2.2"
|
||||
version = "~> 2.2"
|
||||
}
|
||||
|
||||
resource "random_string" "main" {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
{{- define "main" -}}
|
||||
provider "random" {
|
||||
version = "~>2.2"
|
||||
version = "~> 2.2"
|
||||
}
|
||||
|
||||
resource "random_string" "main" {
|
||||
|
|
Загрузка…
Ссылка в новой задаче