Skip to content

Use style linter with PHP 8.1 #106

Use style linter with PHP 8.1

Use style linter with PHP 8.1 #106

Workflow file for this run

name: CI
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.env.experimental == true }}
strategy:
fail-fast: false
matrix:
env:
- { php: 8.0 }
- { php: 8.1 }
- { php: 8.2 }
env: ${{ matrix.env }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.env.php }}
tools: composer
extensions: pdo, sqlite3
# composer
- name: Update Composer
run: |
sudo composer self-update
composer --version
- name: Validate composer.json and composer.lock
run: composer validate
if: ${{ matrix.env.php == "8.1" }}

Check failure on line 39 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 39, Col: 13): Unexpected symbol: '"8'. Located at position 19 within expression: matrix.env.php == "8.1"
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache
key: dependencies-composer-${{ hashFiles('composer.json') }}
- name: Install dependencies
run: composer install
- name: Check coding style
run: composer lint
- name: Run Unit Tests
run: |
echo "Running unit tests with $(which php)";
.Build/bin/phpunit --colors -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit/;