Skip to content

Commit b5e80a6

Browse files
committed
Lint the YAML syntax before linting the contents of the YAML files.
1 parent 4700f45 commit b5e80a6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ruby.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ jobs:
1212
name: Linter
1313
steps:
1414
- uses: actions/checkout@v3
15-
- name: Set up Ruby
16-
uses: ruby/setup-ruby@v1
17-
with:
18-
ruby-version: ruby
19-
- name: Install ruby dependencies
20-
run: bundle install --jobs 4 --retry 3
21-
- name: Validate YAML
22-
run: bundle exec rake lint
2315
- name: Set up Python
2416
uses: actions/setup-python@v4
2517
with:
@@ -30,3 +22,11 @@ jobs:
3022
pip install yamllint
3123
- name: Lint YAML files
3224
run: yamllint gems rubies
25+
- name: Set up Ruby
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: ruby
29+
- name: Install ruby dependencies
30+
run: bundle install --jobs 4 --retry 3
31+
- name: Validate YAML
32+
run: bundle exec rake lint

0 commit comments

Comments
 (0)