YAML validator for Github Actions (possible expansion of variables) ?

Hello,

Are there any efforts to release a validator for the new workflows written in yaml?

Pushing code and then seeing error is frustrating

Gitlab Workflow extension for VSCode already support similar functionality.

38 Likes

++

would be great to have a linter/validator or cli tool for local try out. act works only for hcl syntax :frowning:

3 Likes

We appreciate the feedback. I’ll pass it along to the appropriate teams!

6 Likes

We’re actively working on improving editing with validation, autocomplete etc. The first version of this will be in the GitHub UI. Then we’ll improve from there (including plugins for editors is a great idea).

14 Likes

I’m happy if I can use yaml reference.


  job-config: &job-config
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [12.x]

Is there any repository that I can post an issue?
Where should I subscribe?

I couldn’t find “validation” or “cli” from https://github.com/actions.
Thank you in advance!