52
52
- name : Install shfmt
53
53
run : rush get shfmt
54
54
55
- - name : Install check-jsonschema
56
- run : rush get check-jsonschema
57
-
58
55
# libyaml needed for Ruby's YAML library
59
56
- name : Install OS dependencies
60
57
run : sudo apt-get -y install libyaml-dev
@@ -67,11 +64,50 @@ jobs:
67
64
68
65
- name : Generate all subjects
69
66
run : bundle exec run examples regen
67
+
70
68
- name : Run shellcheck tests
71
69
run : bundle exec run shellcheck
70
+
72
71
- name : Run shfmt tests
73
72
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
+
74
106
- name : Run bashly schema tests
75
107
run : bundle exec run schema examples
108
+
76
109
- name : Run settings schema tests
77
110
run : bundle exec run schema settings
111
+
112
+ - name : Run strings schema tests
113
+ run : bundle exec run schema strings
0 commit comments