Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 Validate Github Workflows/Actions #340

Open
Nicoretti opened this issue Jan 22, 2025 · 0 comments
Open

💡 Validate Github Workflows/Actions #340

Nicoretti opened this issue Jan 22, 2025 · 0 comments
Labels
💡idea Idea for future features/improvments

Comments

@Nicoretti
Copy link
Contributor

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

  1. Integrate a linting tool for validating YAML files in the CI pipeline.
  2. 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.
@Nicoretti Nicoretti added the 💡idea Idea for future features/improvments label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡idea Idea for future features/improvments
Projects
None yet
Development

No branches or pull requests

1 participant