Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/claranet/terraform-modules-ci

Terraform modules common CI template (Github Actions)
https://github.com/claranet/terraform-modules-ci

actions ci claranet modules terraform

Last synced: 16 days ago
JSON representation

Terraform modules common CI template (Github Actions)

Awesome Lists containing this project

README

        

# Terraform Azure modules - Generic CI

## Usage

### CI for Terraform module

This CI pipeline does the following:
* Check the Terraform files format and syntax validation
* Lint the module, eventual sub-modules and examples with [TFLint](https://github.com/terraform-linters/tflint) tool.
* Code analysis with [tfsec](https://github.com/aquasecurity/tfsec)
* Check that the `README.md` file content match the module variables, requirements and examples.
* Validate the module for every compatible Terraform version and minimum and latest provider versions

### CI for Terraform projects

In the remote project add this in `.github/workflows/github-ci.yml`:

```yaml
---
name: CI
on: [push]
jobs:
ci:
uses: claranet/terraform-modules-ci/.github/workflows/ci-modules.yaml@main
...
```

#### Notes

* Ref `main` can be changed for testing purpose