fix: Fix workflows so they stop failing when starting Docker Compose env #1644
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
name: CI Experimental | |
permissions: read-all | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
tests: | |
name: Tests on PHP 8.4 nightly | |
runs-on: ubuntu-22.04 | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379/tcp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: shivammathur/[email protected] | |
with: | |
php-version: '8.4' | |
extensions: mbstring, redis, apcu | |
ini-values: apc.enable_cli=1, zend.assertions=1 | |
coverage: none | |
tools: composer:v2 | |
- name: Remove Composer lockfile | |
run: rm composer.lock | |
- name: Install dependencies | |
run: composer update --no-interaction --prefer-dist --ignore-platform-reqs | |
- name: Configure PHPUnit matchers | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Run tests | |
continue-on-error: true | |
run: ./vendor/bin/phpunit --verbose --colors | |
env: | |
REDIS_PORT: ${{ job.services.redis.ports['6379'] }} |