Skip to content

Commit

Permalink
Lint the YAML syntax before linting the contents of the YAML files.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 19, 2024
1 parent 4700f45 commit b5e80a6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ jobs:
name: Linter
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- name: Install ruby dependencies
run: bundle install --jobs 4 --retry 3
- name: Validate YAML
run: bundle exec rake lint
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -30,3 +22,11 @@ jobs:
pip install yamllint
- name: Lint YAML files
run: yamllint gems rubies
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- name: Install ruby dependencies
run: bundle install --jobs 4 --retry 3
- name: Validate YAML
run: bundle exec rake lint

0 comments on commit b5e80a6

Please sign in to comment.