Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scaleway-terraform-modules/workflows
Workflows files for scaleway-terraform-modules repositories.
https://github.com/scaleway-terraform-modules/workflows
github-actions github-workflows
Last synced: 7 days ago
JSON representation
Workflows files for scaleway-terraform-modules repositories.
- Host: GitHub
- URL: https://github.com/scaleway-terraform-modules/workflows
- Owner: scaleway-terraform-modules
- License: mpl-2.0
- Created: 2024-01-06T19:32:09.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T07:41:36.000Z (22 days ago)
- Last Synced: 2024-10-25T03:47:29.819Z (21 days ago)
- Topics: github-actions, github-workflows
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Workflows
This repository contains reusable workflow files for Github Actions.
## py_check.yaml
Run [`black`](https://black.readthedocs.io/en/stable/) on python files, using [rickstaa/action-black](https://github.com/rickstaa/action-black).
Include the following jobs in your existing workflows to use this workflow:
```yaml
[...]
jobs:
check_py:
uses: scaleway-terraform-modules/wokflows/.github/workflows/py_check.yaml@main```
## shell_check.yaml
Run [shellcheck](https://www.shellcheck.net/) on shell scripts using [ludeeus/action-shellcheck](https://github.com/ludeeus/action-shellcheck).
Include the following jobs in your existing workflows to use this workflow:
```yaml
[...]
jobs:
check_sh:
uses: scaleway-terraform-modules/wokflows/.github/workflows/shell_check.yaml@main```
## tf_module_check.yaml
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`](https://terraform-docs.io/).
* Linting using [`tflint`](https://github.com/terraform-linters/tflint).Include the following jobs in your existing workflows to use this workflow:
```yaml
[...]
jobs:
check_tf:
uses: scaleway-terraform-modules/wokflows/.github/workflows/tf_module_check.yaml@main
secrets: inherit```
## tf_project_apply.yaml
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:
```yaml
[...]
jobs:
merge_tf:
uses: scaleway-terraform-modules/wokflows/.github/workflows/tf_project_apply.yaml@main
secrets: inherit```
## tf_project_plan.yaml
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`](https://github.com/terraform-linters/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:
```yaml
[...]
jobs:
merge_tf:
uses: scaleway-terraform-modules/wokflows/.github/workflows/tf_project_apply.yaml@main
secrets: inherit```
## yaml_check.yaml
Run [`yamllint`](https://www.yamllint.com/).
Include the following jobs in your existing workflows to use this workflow:
```yaml
[...]
jobs:
check_yaml:
uses: scaleway-terraform-modules/wokflows/.github/workflows/yaml_check.yaml@main```