Support php 83 and laravel 11 #114
Workflow file for this run
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: tests | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [7.3, 7.4, 8.0, 8.1, 8.2, 8.3] | |
elastic: [7.11.0] | |
stability: [prefer-lowest, prefer-stable] | |
exclude: | |
- php: 8.1 | |
stability: prefer-lowest | |
- php: 8.2 | |
stability: prefer-lowest | |
- php: 8.3 | |
stability: prefer-lowest | |
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2, cs2pr | |
coverage: none | |
- name: Setup problem matchers for PHPUnit | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: dependencies-${{ matrix.php }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: dependencies-${{ matrix.php }}-${{ matrix.stability }}-composer- | |
- name: Install dependencies | |
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction | |
# - name: Check coding style | |
# run: php-cs-fixer fix --dry-run --allow-risky=true --format=checkstyle | cs2pr | |
- name: Configure sysctl limits | |
run: | | |
sudo swapoff -a | |
sudo sysctl -w vm.swappiness=1 | |
sudo sysctl -w fs.file-max=262144 | |
sudo sysctl -w vm.max_map_count=262144 | |
- name: Runs Elasticsearch | |
uses: elastic/elastic-github-actions/elasticsearch@master | |
with: | |
stack-version: ${{ matrix.elastic }} | |
- name: Configure matchers for PHPUnit | |
uses: mheap/phpunit-matcher-action@v1 | |
- name: Run PHP tests via PHPUnit | |
run: vendor/bin/phpunit --teamcity |