Skip to content

Commit

Permalink
test another CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deluxetom committed Dec 31, 2024
1 parent c7e7281 commit 30748c9
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
matrix:
php: [ '8.1', '8.2', '8.3', '8.4' ]
stability: [ prefer-stable ]
container:
image: php:${{ matrix.php }}-cli

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

Expand All @@ -20,16 +18,16 @@ jobs:
uses: actions/checkout@v4

- name: Install vips
run: apt update && apt install -y --no-install-recommends libvips42 libffi-dev libexif-dev zip unzip
run: sudo apt install -y --no-install-recommends libvips42 libffi-dev libexif-dev unzip zip

- name: Setup PHP
run: ( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \
@composer exif zip ffi

- name: FFI config
run: |
echo "zend.max_allowed_stack_size=-1" >> /usr/local/etc/php/conf.d/ffi.ini
echo "ffi.enable=true" >> /usr/local/etc/php/conf.d/ffi.ini
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: zend.max_allowed_stack_size=-1,ffi.enable=true
extensions: ffi, exif
tools: composer:v2
coverage: none

- name: Get composer cache directory
id: composer-cache
Expand All @@ -46,10 +44,10 @@ jobs:
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: Execute tests
run: ./vendor/bin/phpunit --no-coverage
run: vendor/bin/phpunit --no-coverage

- name: Run analyzer
run: ./vendor/bin/phpstan
run: vendor/bin/phpstan

- name: Validate coding standards
run: ./vendor/bin/phpcs
run: vendor/bin/phpcs

0 comments on commit 30748c9

Please sign in to comment.