Simple YAML Linter/Validator Workflow for GitHub Actions

Here’s a quick tip if you work with YAML on GitHub!

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!

name: Validate YAML on: push: pull_request: jobs: validate-yaml: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Validate YAML file run: yamllint my-file.yml
Enter fullscreen mode
Exit fullscreen mode

Discover more from Coursity

Subscribe to get the latest posts sent to your email.

Leave a Comment

Your email address will not be published. Required fields are marked *

Discover more from Coursity

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top
Gpu dedicated servers (tbd). How to install docker and docker compose on ubuntu 20. Chinese, continental, indian foods.