Skip to content

Commit

Permalink
Increase PHP version requirement to 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Nov 25, 2024
1 parent f3c499c commit a929676
Show file tree
Hide file tree
Showing 23 changed files with 1,840 additions and 1,275 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Install dependencies
run: composer install --no-progress --no-suggest --no-interaction

- name: Check coding standards
run: ./vendor/bin/ecs check

- name: Run PHPUnit tests
run: ./vendor/bin/phpunit
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
vendor
/vendor
/.phpunit.result.cache
/.phpunit.cache
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ A lightweight form system for Symfony Console commands.
Commands can define forms which can be used both via command-line options and
via interactive input.

[![Build Status](https://travis-ci.org/platformsh/console-form.svg?branch=master)](https://travis-ci.org/platformsh/console-form)

## Example
```php
<?php
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"description": "A lightweight Symfony Console form system.",
"license": "MIT",
"require": {
"php": ">=5.5.9",
"symfony/console": "^6.0 || ^5.0 || ^4.0 || ^3.0 || ^2.6"
"php": "^8.2",
"symfony/console": "^7.0 || ^6.0"
},
"require-dev": {
"phpunit/phpunit": "^5.0"
"phpunit/phpunit": "^11",
"symplify/easy-coding-standard": "^12.3"
},
"autoload": {
"psr-4": {
Expand All @@ -21,7 +22,7 @@
],
"config": {
"platform": {
"php": "5.6"
"php": "8.2"
}
}
}
Loading

0 comments on commit a929676

Please sign in to comment.