File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 4646 - name : Install rush
4747 run : curl -Ls http://get.dannyb.co/rush/setup | bash
4848
49- - name : Install shfmt
50- run : rush snatch dannyben shfmt
49+ - name : Connect rush repo
50+ run : rush clone dannyben --shallow --default
51+
52+ - name : Install shfmt and check-jsonschema
53+ run : rush add shfmt check-jsonschema
5154
5255 # libyaml needed for Ruby's YAML library
5356 - name : Install OS dependencies
6568 run : bundle exec run shellcheck
6669 - name : Run shfmt tests
6770 run : bundle exec run shfmt
71+ - name : Run schema tests
72+ run : bundle exec run schema
Original file line number Diff line number Diff line change @@ -52,6 +52,18 @@ action :shfmt do
5252 end
5353end
5454
55+ help "Run json-schema checks on all examples"
56+ action :schema do
57+ Example.all.each do |example|
58+ file = example.yaml_path
59+ command = "check-jsonschema --schemafile schema.json #{file}"
60+ success = system command
61+ color = success ? 'g' : 'r'
62+ say "- check-jsonschema #{color}`#{example.dir}`"
63+ exit 1 unless success
64+ end
65+ end
66+
5567help "Generate changelog and append old changelog"
5668action :changelog do
5769 system "git changelog --save"
You can’t perform that action at this time.
0 commit comments