Add better check for office documents for XML parsing #74
This file contains hidden or 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: phpunit | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
XDEBUG_MODE: debug,coverage | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: [ '8.2', '8.3' ] | |
phpunit-versions: ['11.5.0'] | |
services: | |
httpd: | |
image: httpd | |
ports: | |
- 80:80 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
tools: phpunit:${{ matrix.phpunit-versions }} | |
extensions: json, simplexml, zlib, mbstring | |
#- name: Validate composer.json and composer.lock | |
# run: composer validate | |
- name: Clear Cache | |
run: composer clear-cache | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" | |
# Docs: https://getcomposer.org/doc/articles/scripts.md | |
- name: Run test suite | |
run: composer run-script test |