Skip to content

Validate Github Workflows/Actions #340

@Nicoretti

Description

@Nicoretti

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaIdea for future features/improvments

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions