Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#634 : Added ODFValidator #653

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/odfvalidator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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-0.12.0-jar-with-dependencies.jar -1.2 -e -r samples/results/
2 changes: 1 addition & 1 deletion docs/changes/1.1.0.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 1.1.0 - WIP
# 1.1.0

## Features

Expand Down
15 changes: 15 additions & 0 deletions docs/changes/1.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 1.2.0

[Full Changelog](https://github.com/PHPOffice/PHPPresentation/compare/1.3.0...1.4.0)

## Enhancements


## Bug fixes


## Miscellaneous

- 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)

## BC Breaks
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ nav:
- FAQ: 'faq.md'
- Credits: 'credits.md'
- Releases:
- '1.1.0 (WIP)': 'changes/1.1.0.md'
- '1.2.0 (WIP)': 'changes/1.2.0.md'
- '1.1.0': 'changes/1.1.0.md'
- '1.0.0': 'changes/1.0.0.md'
- '0.9.0': 'changes/0.9.0.md'
- '0.8.0': 'changes/0.8.0.md'
Expand Down
3 changes: 2 additions & 1 deletion samples/Sample_03_Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@

// Add a file drawing (GIF) to the slide
$shape = new Drawing\File();
$shape->setName('Image File')
$shape
->setName('Image File')
->setDescription('Image File')
->setPath(__DIR__ . '/resources/phppowerpoint_logo.gif')
->setHeight(36)
Expand Down
Loading
Loading