You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,3 +86,21 @@ This should start up a local server, running at <localhost:8080>. To test it, tr
86
86
}
87
87
```
88
88
You may also use `--hostname` to specify a hostname or IP address to which to bind and `--port` for a port to which to bind.
89
+
90
+
91
+
## Github action
92
+
93
+
It is also possible to run the validator against JSON documents which are in a Github repository using a github action. An example is below:
94
+
95
+
```
96
+
- name: Run IIIF validator
97
+
uses: IIIF/presentation-validator@main
98
+
with:
99
+
directory: path/to/json
100
+
version: 3
101
+
extension: .json
102
+
```
103
+
104
+
*`directory` is required. The validator will start at this directory and then go through any sub-directories looking for json files to validate.
105
+
*`version` is optional. If supplied any json files will be validated against this version. If its not supplied the validator will look inside the json to see which version is specified in the @context
106
+
*`extension` is optional and defaults to .json. - name: Run IIIF validator
0 commit comments