Skip to content

Commit b889aca

Browse files
committed
CI: Added ODFValidator
1 parent e7fa00f commit b889aca

File tree

10 files changed

+239
-103
lines changed

10 files changed

+239
-103
lines changed

.github/workflows/odfvalidator.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ODFValidator
2+
on: [push, pull_request]
3+
jobs:
4+
php-cs-fixer:
5+
name: ODFValidator
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Setup PHP
9+
uses: shivammathur/setup-php@v2
10+
with:
11+
php-version: '7.4'
12+
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
13+
- uses: actions/checkout@v2
14+
15+
- name: Composer Install
16+
run: composer install --ansi --prefer-dist --no-interaction --no-progress
17+
18+
- name: Generate samples files
19+
run: composer run samples
20+
21+
- name: Download ODFValidator
22+
run: wget https://repo1.maven.org/maven2/org/odftoolkit/odfvalidator/0.12.0/odfvalidator-0.12.0-jar-with-dependencies.jar
23+
24+
# https://odftoolkit.org/conformance/ODFValidator.html#what-is-checked
25+
- name: Validate documents (ODF 1.2)
26+
run: java -jar odfvalidator-0.12.0-jar-with-dependencies.jar -1.2 -e -r samples/results/

docs/changes/1.2.0.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
- PowerPoint2007 Reader : Fixed loading of fonts by [@ag3202](https://github.com/ag3202) and [@Progi1984](https://github.com/Progi1984) in [#851](https://github.com/PHPOffice/PHPPresentation/pull/851)
2525

2626
## Miscellaneous
27+
- CI: Added ODFValidator by [@Progi1984](https://github.com/Progi1984) fixing [#678](https://github.com/PHPOffice/PHPWord/issues/678) in [#653](https://github.com/PHPOffice/PHPWord/pull/653)
2728

2829
## BC Breaks

samples/Sample_03_Image.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535

3636
// Add a file drawing (GIF) to the slide
3737
$shape = new Drawing\File();
38-
$shape->setName('Image File')
38+
$shape
39+
->setName('Image File')
3940
->setDescription('Image File')
4041
->setPath(__DIR__ . '/resources/phppowerpoint_logo.gif')
4142
->setHeight(36)

0 commit comments

Comments
 (0)