Skip to content

Commit

Permalink
Remove composer.lock to test various versions (#1)
Browse files Browse the repository at this point in the history
* Remove composer.lock to test various versions

* Fix a bug to match php version as well

* Fix a phpunit version error

* Resolve laravel/pint version issue

* Fix a typo

* FIx a license sentence onto the README
  • Loading branch information
cable8mm authored Mar 1, 2024
1 parent e291800 commit bc7406c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1,719 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,19 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.4, 8.0, 8.1, 8.2, 8.3]
php: [8.0, 8.1, 8.2, 8.3]

name: PHP ${{ matrix.php }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- name: Validate composer.json and composer.lock
run: composer validate
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,6 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/composer,macos,windows,visualstudiocode
# End of https://www.toptal.com/developers/gitignore/api/composer,macos,windows,visualstudiocode

composer.lock
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Array Flatten

[![Test](https://github.com/cable8mm/array-flatten/actions/workflows/tests.yml/badge.svg)](https://github.com/cable8mm/array-flatten/actions/workflows/tests.yml)
[![Tests](https://github.com/cable8mm/array-flatten/actions/workflows/tests.yml/badge.svg)](https://github.com/cable8mm/array-flatten/actions/workflows/tests.yml)
[![PHP Linting (Pint)](https://github.com/cable8mm/array-flatten/actions/workflows/coding-style-php.yml/badge.svg)](https://github.com/cable8mm/array-flatten/actions/workflows/coding-style-php.yml)
[![Latest Stable Version](http://poser.pugx.org/cable8mm/array-flatten/v)](https://packagist.org/packages/cable8mm/array-flatten)
[![Total Downloads](http://poser.pugx.org/cable8mm/array-flatten/downloads)](https://packagist.org/packages/cable8mm/array-flatten)
Expand All @@ -27,4 +27,4 @@ array_flatten([1, [2, [3, [4, [5], 6], 7], 8], 9]);

## License

The QR Images is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).
The Array Flatten is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
}
],
"require": {
"php": "^7.4|^8.0"
"php": "^8.0"
},
"require-dev": {
"phpunit/phpunit": "^11.0",
"laravel/pint": "^1.14"
"phpunit/phpunit": "^9.0|^10.0|^11.0",
"laravel/pint": "^1.0"
},
"scripts": {
"test": [
Expand Down
Loading

0 comments on commit bc7406c

Please sign in to comment.