This repository contains reusable workflow files for Github Actions.
Run black
on python files, using rickstaa/action-black.
Include the following jobs in your existing workflows to use this workflow:
[...]
jobs:
check_py:
uses: scaleway-terraform-modules/wokflows/.github/workflows/py_check.yaml@main
Run shellcheck on shell scripts using ludeeus/action-shellcheck.
Include the following jobs in your existing workflows to use this workflow:
[...]
jobs:
check_sh:
uses: scaleway-terraform-modules/wokflows/.github/workflows/shell_check.yaml@main
Run several checks on terraform code, usefull for modules:
- Formatting check using
terraform fmt
. - Configuration validation using
terraform validate
. - Documentation is up to date using
terraform-docs
. - Linting using
tflint
.
Include the following jobs in your existing workflows to use this workflow:
[...]
jobs:
check_tf:
uses: scaleway-terraform-modules/wokflows/.github/workflows/tf_module_check.yaml@main
secrets: inherit
Apply any changes on the infrastructure using terraform//
The job is configured to avoid deadlocks on the remote state. As such only one job will run at a time, and running jobs won't be cancelled.
Include the following jobs in your existing workflows to use this workflow:
[...]
jobs:
merge_tf:
uses: scaleway-terraform-modules/wokflows/.github/workflows/tf_project_apply.yaml@main
secrets: inherit
Run some checks on terraform code and generate a plan, usefull when creating pull request on a project:
- Formatting check using
terraform fmt
. - Configuration validation using
terraform validate
. - Generate a plan using
terraform plan
. - Linting using
tflint
.
The job is configured to avoid deadlocks on the remote state. As such only one job will run at a time, and running jobs are not cancelled.
Include the following jobs in your existing workflows to use this workflow:
[...]
jobs:
merge_tf:
uses: scaleway-terraform-modules/wokflows/.github/workflows/tf_project_apply.yaml@main
secrets: inherit
Run yamllint
.
Include the following jobs in your existing workflows to use this workflow:
[...]
jobs:
check_yaml:
uses: scaleway-terraform-modules/wokflows/.github/workflows/yaml_check.yaml@main