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
Top comments (5)
And one day it is not available anymore ^^.
I'd rather be explicit about the dependency you need rather than relying on "by conincedence" installed tools on the runner.
Consider your pipeline as an application. Follow the factor II from 12 factors: 12factor.net/dependencies
Is it no longer available, or are you speaking generally?
Generally but it happens to me once for a different tool.
For instance, even if it works rightaway on the runner I avoid to do that:
but rather do that:
Some comments may only be visible to logged-in visitors. Sign in to view all comments.