5252 - name : Install shfmt
5353 run : rush get shfmt
5454
55- - name : Install check-jsonschema
56- run : rush get check-jsonschema
57-
5855 # libyaml needed for Ruby's YAML library
5956 - name : Install OS dependencies
6057 run : sudo apt-get -y install libyaml-dev
@@ -67,11 +64,50 @@ jobs:
6764
6865 - name : Generate all subjects
6966 run : bundle exec run examples regen
67+
7068 - name : Run shellcheck tests
7169 run : bundle exec run shellcheck
70+
7271 - name : Run shfmt tests
7372 run : bundle exec run shfmt
73+
74+ json_schema :
75+ name : Validate JSON schemas
76+
77+ runs-on : ubuntu-latest
78+
79+ steps :
80+ - name : Checkout code
81+ uses : actions/checkout@v3
82+
83+ # Rush needed for easy installation of check-jsonschema
84+ - name : Install rush
85+ run : curl -Ls http://get.dannyb.co/rush/setup | bash
86+
87+ - name : Connect rush repo
88+ run : rush clone dannyben --shallow --default
89+
90+ - name : Install check-jsonschema
91+ run : rush get check-jsonschema
92+
93+ # libyaml needed for Ruby's YAML library
94+ - name : Install OS dependencies
95+ run : sudo apt-get -y install libyaml-dev
96+
97+ - name : Setup Ruby
98+ uses : ruby/setup-ruby@v1
99+ with :
100+ ruby-version : ' 3.1'
101+ bundler-cache : true
102+
103+ - name : Generate all subjects
104+ run : bundle exec run examples regen
105+
74106 - name : Run bashly schema tests
75107 run : bundle exec run schema examples
108+
76109 - name : Run settings schema tests
77110 run : bundle exec run schema settings
111+
112+ - name : Run strings schema tests
113+ run : bundle exec run schema strings
0 commit comments