Summary
Add nox task and an extra step to the CI workflow to ensure that the GitHub workflows/actions are valid.
Details
The most basic validation could involve checking the validity of the YAML files, for example by using appropriate linting tools.
Background & Context
Debugging and finding errors in actions and workflows can be tedious, as they usually only surface after being pushed or executed. Adding some way to validate them locally and in the CI pipeline would be beneficial.
Proposed Solution
- Integrate a linting tool for validating YAML files in the CI pipeline.
- Ensure that the GitHub workflows and actions are tested for validity before changes are merged or pushed.
Attention:
make sure the workflows of the workspace .github/workflows as well as the templates exasol/toolbox/templates/github/workflows are checked
Potential Tools
- actionlint: A static checker for GitHub Actions workflow files.
- yamllint: A linter for YAML files.
- act: A tool to run GitHub Actions locally.
Summary
Add nox task and an extra step to the CI workflow to ensure that the GitHub workflows/actions are valid.
Details
The most basic validation could involve checking the validity of the YAML files, for example by using appropriate linting tools.
Background & Context
Debugging and finding errors in actions and workflows can be tedious, as they usually only surface after being pushed or executed. Adding some way to validate them locally and in the CI pipeline would be beneficial.
Proposed Solution
Attention:
Potential Tools