Skip to content

chore: Harden GHA workflows #1713

chore: Harden GHA workflows

chore: Harden GHA workflows #1713

name: CI Experimental
permissions: {}
on:
push:
branches:
- master
pull_request:
jobs:
tests:
name: Tests on PHP 8.5 nightly
runs-on: ubuntu-24.04
services:
redis:
image: redis
ports:
- 6379/tcp
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
with:
php-version: '8.5'
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'] }}