Skip to content

Commit 27ea0f3

Browse files
committed
Laravel 8
1 parent 4d573dd commit 27ea0f3

File tree

7 files changed

+1448
-659
lines changed

7 files changed

+1448
-659
lines changed

.github/workflows/run-tests.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ on:
55

66
jobs:
77
test:
8-
name: Run tests
9-
runs-on: ubuntu-latest
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
php: [7.4]
12+
laravel: [7.*, 8.*]
13+
dependency-version: [prefer-lowest, prefer-stable]
14+
os: [ubuntu-latest]
15+
16+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
1017

1118
steps:
1219
- name: Checkout code
@@ -19,14 +26,16 @@ jobs:
1926
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
2027

2128
- name: Setup PHP
22-
uses: shivammathur/setup-php@master
29+
uses: shivammathur/setup-php@v1
2330
with:
24-
php-version: 7.4
25-
tools: prestissimo
31+
php-version: ${{ matrix.php }}
32+
extensions: pdo, sqlite, pdo_sqlite
2633
coverage: none
2734

2835
- name: Install dependencies
29-
run: composer install
36+
run: |
37+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
38+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
3039
3140
- name: Execute tests
32-
run: vendor/bin/pest
41+
run: vendor/bin/phpunit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/vendor/
22
node_modules/
3+
.phpunit.result.cache

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ composer require dionera/laravel-beanstalkd-ui
1818

1919
### Version Table
2020

21-
| Laravel | PHP | Version |
21+
| Laravel | Required PHP Version | Package Version |
2222
|:--------|:----|:--------|
2323
| `^5.7.28` | `^7.2` | `^2.0` |
2424
| `^6.0`, `^7.0` | `^7.2` | `^2.1` |
2525
| `^7.0` | `^7.4` | `^3.0` |
26+
| `^8.0` | `^7.4` | `^3.1` |
2627

2728
### Publish assets
2829

@@ -39,11 +40,6 @@ This will publish all the required Javascript and CSS into your applications `pu
3940
Now navigate to `http://<your-app>/beanstalkd/tubes` in your browser. If you're not already authenticated you will now be asked to log in. This is because by
4041
default all routes use the `auth` middleware. See the [Configuration](#configuration) section for information about how to overwrite this.
4142

42-
## Older versions of PHP and Laravel
43-
44-
If you're not on PHP 7 or Laravel 5.5 yet, please check out the [legacy branch](https://github.com/Dionera/laravel-beanstalkd-admin-ui/tree/php5). No new features will be added
45-
to this branch. Bugfixes will still get backported.
46-
4743
## Live Updating
4844

4945
![](https://raw.githubusercontent.com/Dionera/laravel-beanstalkd-admin-ui/master/live_updating.gif)

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
],
1111
"require": {
1212
"php": "^7.4",
13-
"laravel/framework": "^7.0",
13+
"laravel/framework": "^7.0 | ^8.0",
1414
"pda/pheanstalk": "^4.0"
1515
},
1616
"require-dev": {
1717
"phpunit/phpunit": "^9.2",
18-
"pestphp/pest": "^0.1.5",
18+
"pestphp/pest": "^0.3.2",
1919
"mockery/mockery": "^1.4"
2020
},
2121
"autoload": {

0 commit comments

Comments
 (0)