Skip to content

Commit 12e3c2d

Browse files
committed
CI: Added ODFValidator
1 parent 7a70b57 commit 12e3c2d

File tree

12 files changed

+256
-122
lines changed

12 files changed

+256
-122
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-1.0.0-BETA1-jar-with-dependencies.jar -1.2 -r samples/results/

docs/changes/1.1.0.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 1.1.0 - WIP
1+
# 1.1.0
22

33
## Features
44

docs/changes/1.2.0.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# 1.2.0
2+
3+
[Full Changelog](https://github.com/PHPOffice/PHPPresentation/compare/1.3.0...1.4.0)
4+
5+
## Enhancements
6+
7+
8+
## Bug fixes
9+
10+
11+
## Miscellaneous
12+
13+
- 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)
14+
15+
## BC Breaks

mkdocs.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ nav:
6767
- FAQ: 'faq.md'
6868
- Credits: 'credits.md'
6969
- Releases:
70-
- '1.1.0 (WIP)': 'changes/1.1.0.md'
70+
- '1.2.0 (WIP)': 'changes/1.2.0.md'
71+
- '1.1.0': 'changes/1.1.0.md'
7172
- '1.0.0': 'changes/1.0.0.md'
7273
- '0.9.0': 'changes/0.9.0.md'
7374
- '0.8.0': 'changes/0.8.0.md'

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)