Skip to content

chore(ci): bump actions/checkout from 4 to 6 #2

chore(ci): bump actions/checkout from 4 to 6

chore(ci): bump actions/checkout from 4 to 6 #2

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3']
deps: [highest, lowest]
name: PHP ${{ matrix.php }} — ${{ matrix.deps }}
steps:
- uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, json, mbstring
coverage: pcov
tools: composer:v2
- name: Get composer cache dir
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php${{ matrix.php }}-${{ matrix.deps }}-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-php${{ matrix.php }}-${{ matrix.deps }}-
- name: Install (highest)
if: matrix.deps == 'highest'
run: composer update --prefer-stable --no-interaction --no-progress
- name: Install (lowest)
if: matrix.deps == 'lowest'
run: composer update --prefer-lowest --prefer-stable --no-interaction --no-progress
- name: Run tests
run: composer test