Skip to content

Commit

Permalink
Drop support for PHP 7.3 and add spatie/ray as a dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Jun 6, 2021
1 parent 24c2fdd commit 74e017f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 37 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: run-tests

on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.0, 7.4, 7.3, 7.2]

name: P${{ matrix.php }}

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

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

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

- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.0, 7.4, 7.3]

name: P${{ matrix.php }}

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

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

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

- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-suggest

- name: Execute tests
run: vendor/bin/phpunit
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=7.3",
"ext-ldap": "*",
"ext-json": "*",
"psr/log": "^1.0",
Expand All @@ -41,7 +41,8 @@
"require-dev": {
"phpunit/phpunit": "^8.0",
"mockery/mockery": "^1.0",
"friendsofphp/php-cs-fixer": "^3.0"
"friendsofphp/php-cs-fixer": "^3.0",
"spatie/ray": "^1.24"
},
"archive": {
"exclude": ["/tests"]
Expand Down

0 comments on commit 74e017f

Please sign in to comment.