Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase PHP version requirement to 8.2 #10

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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