The GitHub Actions Ubuntu runners comes with yamllint installed, meaning it's super simple to create linting/validating workflows to ensure your YAML is valid!
Filepath: .github/workflows/lint.yml 1name: Validate YAML 2 3on: 4 push: 5 pull_request: 6 7jobs: 8 validate-yaml: 9 runs-on: ubuntu-latest10 steps:11 - uses: actions/checkout@v412 - name: Validate YAML file13 run: yamllint my-file.yml
Syntax highlighting by Torchlight.dev