Skip to content

Commit

Permalink
CI: Added ODFValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Sep 2, 2024
1 parent 7a70b57 commit add0938
Show file tree
Hide file tree
Showing 12 changed files with 256 additions and 122 deletions.
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

0 comments on commit add0938

Please sign in to comment.