#634 : Added ODFValidator #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/0.12.0/odfvalidator-0.12.0-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/ |