Skip to content

Update GitHub scripts #1

Update GitHub scripts

Update GitHub scripts #1

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- 0.x
- 1.x
pull_request:
branches:
- main
- 0.x
- 1.x
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest, windows-latest ]
php: [ 8.2 ]
stability: [ prefer-lowest, prefer-stable ]
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
steps:
- name: 📚 Checkout code
uses: actions/checkout@v3
- name: 🔥 Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: bcmath, curl, dom, fileinfo, intl, libxml, mbstring, pcntl, pdo, redis, soap, sqlite, zip
coverage: none
- name: 🔎 Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: 📦 Install Composer dependencies
uses: ramsey/composer-install@v2
- name: 🧪 Run test suite
run: composer test