Skip to content

New test suite using Pest (basic tests) #29

New test suite using Pest (basic tests)

New test suite using Pest (basic tests) #29

Workflow file for this run

name: tests
on:
push:
branches:
- 1.x
- 2.x
jobs:
tests:
name: PHP ${{ matrix.php }} - TIKA ${{ matrix.tika }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache Apache Tika binaries
uses: actions/cache@v1
with:
path: bin
key: binaries-apache-tika-${{ matrix.tika }}
- name: Cache PHP dependencies
uses: actions/cache@v1
with:
path: vendor
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
- name: Setup environment
run: sudo apt-get -y install tesseract-ocr
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, dom, gd, json, libxml, mbstring, zip, xdebug
- name: Install dependencies
run: |
composer config platform.php 8.0.0
composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Download Apache Tika binaries
run: APACHE_TIKA_VERSION=${{ matrix.tika }} scripts/download.sh
- name: Start Apache Tika server
run: APACHE_TIKA_VERSION=${{ matrix.tika }} scripts/spawn.sh --background
- name: Execute tests
run: APACHE_TIKA_VERSION=${{ matrix.tika }} vendor/bin/phpunit --verbose
- name: Code coverage
uses: codecov/codecov-action@v2
strategy:
matrix:
php:
- '8.0'
- '8.1'
- '8.2'
tika:

Check failure on line 68 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 68
- '1.19'
- '1.19.1'
- '1.20'
- '1.21'
- '1.22'
- '1.23'
- '1.24'
- '1.24.1'
- '1.25'
- '1.26'
- '1.27'
- '1.28'
- '1.28.1'
- '1.28.2'
- '1.28.3'
- '1.28.4'
- '1.28.5'
- '2.0.0'
- '2.1.0'
- '2.2.0'
- '2.2.1'
- '2.3.0'
- '2.4.0',
- '2.5.0',
- '2.6.0',
- '2.7.0',
- '2.8.0'