Skip to content

[repo] Add linting of yml/yaml files in CI #1688

@CodeBlanch

Description

@CodeBlanch

We ran into an issue where a typo in a yml file (09cafa5) broke all code coverage upload.

I did a quick scan of GitHub marketplace, there seem to be some YML linters available. We should add linting of yml/yaml files into the CI.

High level we need to add a bucket for these files here:

yml: [ '**.yml, '**.yaml' ]

And then add a step for yml changes which calls some workflow to run linting. Similar to this...

lint-md:
needs: detect-changes
if: |
contains(needs.detect-changes.outputs.changes, 'md')
|| contains(needs.detect-changes.outputs.changes, 'build')
uses: ./.github/workflows/markdownlint.yml

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomershelp wantedExtra attention is neededinfraInfra work - CI/CD, code coverage, linters

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions