Skip to content

#634 : Added ODFValidator #6

#634 : Added ODFValidator

#634 : Added ODFValidator #6

Workflow file for this run

name: ODFValidator
on: [push, pull_request]
jobs:
php-cs-fixer:
name: ODFValidator
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
- uses: actions/checkout@v2
- name: Composer Install
run: composer install --ansi --prefer-dist --no-interaction --no-progress
- name: Generate samples files
run: composer run samples
- name: Download ODFValidator
run: wget https://repo1.maven.org/maven2/org/odftoolkit/odfvalidator/1.0.0-BETA1/odfvalidator-1.0.0-BETA1-jar-with-dependencies.jar
# https://odftoolkit.org/conformance/ODFValidator.html#what-is-checked
- name: Validate documents (ODF 1.2)
run: java -jar odfvalidator-1.0.0-BETA1-jar-with-dependencies.jar -1.2 -r samples/results/