Skip to content

Add .editorconfig with PHPStorm formatting rules #7

Add .editorconfig with PHPStorm formatting rules

Add .editorconfig with PHPStorm formatting rules #7

Workflow file for this run

name: Tests
on:
push:
branches: [main, dev]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
php:
description: 'PHP version (blank = all)'
required: false
type: choice
options: ['', '8.1', '8.2', '8.3', '8.4', '8.5']
jobs:
test:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ${{ inputs.php && fromJSON(format('["{0}"]', inputs.php)) || fromJSON('["8.1","8.2","8.3","8.4","8.5"]') }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Checkout SmartString
run: git clone --depth 1 https://github.com/interactivetools-com/SmartString.git ../SmartString
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring
coverage: none
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Run tests
run: vendor/bin/phpunit --colors=always