Update symfony/process requirement from ^5.3 to ^7.1 #174
This file contains 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
# SPDX-FileCopyrightText: 2021 Johannes Siipola | |
# SPDX-License-Identifier: CC0-1.0 | |
name: Test | |
on: [push] | |
jobs: | |
# build-linux: | |
# runs-on: ubuntu-20.04 | |
# steps: | |
# - uses: actions/checkout@v1 | |
# - run: docker-compose pull | |
# - uses: satackey/[email protected] | |
# continue-on-error: true | |
# - name: Setup docker | |
# run: docker-compose up --build -d | |
# - name: Validate composer.json and composer.lock | |
# run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "composer validate" | |
# - name: Install dependencies | |
# run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "composer install --prefer-dist --no-progress --no-suggest" | |
# - name: Run test suite | |
# run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "export XDEBUG_MODE=coverage; ./vendor/bin/codecept run --debug -vvv --coverage --coverage-xml" | |
# - uses: codecov/codecov-action@v2 | |
# with: | |
# files: ./tests/_output/coverage.xml | |
# verbose: true | |
test-linux: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
extensions: xdebug | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run test suite | |
run: export XDEBUG_MODE=coverage; ./vendor/bin/codecept run --debug -vvv --coverage --coverage-xml | |
- uses: codecov/codecov-action@v3 | |
with: | |
files: ./tests/_output/coverage.xml | |
verbose: true | |
test-mac: | |
runs-on: macos-11 | |
strategy: | |
matrix: | |
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
extensions: xdebug | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run test suite | |
run: export XDEBUG_MODE=coverage; ./vendor/bin/codecept run --debug -vvv --coverage --coverage-xml | |
- uses: codecov/codecov-action@v3 | |
with: | |
files: ./tests/_output/coverage.xml | |
verbose: true | |
test-windows: | |
runs-on: windows-2019 | |
strategy: | |
matrix: | |
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
extensions: xdebug | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $env:GITHUB_OUTPUT | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run test suite | |
run: | | |
$env:XDEBUG_MODE = 'coverage' | |
./vendor/bin/codecept run --debug -vvv --coverage --coverage-xml | |
- uses: codecov/codecov-action@v3 | |
with: | |
files: ./tests/_output/coverage.xml | |
verbose: true | |
test-linux-imagemagick: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- run: docker-compose pull | |
- uses: jpribyl/[email protected] | |
continue-on-error: true | |
- name: Setup docker | |
run: docker-compose --file docker-compose-imagemagick.yml up --build -d | |
- name: Validate composer.json and composer.lock | |
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "composer validate" | |
- name: Install dependencies | |
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "composer install --prefer-dist --no-progress --no-suggest" | |
- name: Run test suite | |
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "export XDEBUG_MODE=coverage; ./vendor/bin/codecept run --debug -vvv --coverage --coverage-xml" | |
- uses: codecov/codecov-action@v3 | |
with: | |
files: ./tests/_output/coverage.xml | |
verbose: true | |
test-linux-vips: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- run: docker-compose pull | |
- uses: jpribyl/[email protected] | |
continue-on-error: true | |
- name: Setup docker | |
run: docker-compose --file docker-compose-vips.yml up --build -d | |
- name: Validate composer.json and composer.lock | |
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "composer validate" | |
- name: Install dependencies | |
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "composer install --prefer-dist --no-progress && composer require jcupitt/vips" | |
- name: Run test suite | |
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "export XDEBUG_MODE=coverage; ./vendor/bin/codecept run --debug -vvv --coverage --coverage-xml" | |
- uses: codecov/codecov-action@v3 | |
with: | |
files: ./tests/_output/coverage.xml | |
verbose: true |