Skip to content

Commit

Permalink
ci(checks):check code and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
smerlos committed Jan 24, 2024
1 parent a0022d5 commit aee9415
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI

on: [push, pull_request]

jobs:
format-and-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
- name: Terraform Format
run: terraform fmt -check
- name: Setup tflint
uses: reviewdog/action-tflint@v1
- name: Terraform Lint
run: tflint --recursive
20 changes: 10 additions & 10 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
module "ha_proxy" {
source = "./proxmox_vm_module"
source = "./proxmox_vm_module"
vm_disk_size = "40G"
base_ip = 20
vm_counts = 2
vm_memory = 1024 * 2
vm_vmid = 1000
pm_host = var.pm_host
pm_user = var.pm_user
pm_password = var.pm_password
pm_node = var.pm_node
pm_api_url = var.pm_api_url
base_ip = 20
vm_counts = 2
vm_memory = 1024 * 2
vm_vmid = 1000
pm_host = var.pm_host
pm_user = var.pm_user
pm_password = var.pm_password
pm_node = var.pm_node
pm_api_url = var.pm_api_url
}

module "k8s_master" {
Expand Down

0 comments on commit aee9415

Please sign in to comment.