Skip to content

Commit 976dd2a

Browse files
authored
Merge pull request #19 from ellgreen/workflow-update
Workflow update
2 parents f2d7ded + fa80f48 commit 976dd2a

File tree

5 files changed

+4601
-4912
lines changed

5 files changed

+4601
-4912
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,58 @@
1-
name: test
1+
name: Test
22

3-
on: push
3+
on:
4+
push:
5+
workflow_dispatch:
46

57
jobs:
68
phpcs:
7-
89
runs-on: ubuntu-latest
9-
10-
11-
1210
steps:
1311
- uses: actions/checkout@v2
14-
15-
16-
1712
- uses: shivammathur/setup-php@v2
1813
with:
19-
php-version: '8.1'
20-
21-
22-
14+
php-version: "8.2"
2315
- run: composer install --no-interaction --prefer-dist
24-
25-
26-
2716
- run: vendor/bin/phpcs
2817

2918
phpstan:
30-
3119
runs-on: ubuntu-latest
32-
33-
34-
3520
steps:
3621
- uses: actions/checkout@v2
37-
38-
39-
4022
- uses: shivammathur/setup-php@v2
4123
with:
42-
php-version: '8.1'
43-
44-
45-
24+
php-version: "8.2"
4625
- run: composer install --no-interaction --prefer-dist
47-
48-
49-
5026
- run: vendor/bin/phpstan analyse
5127

5228
phpunit:
5329
strategy:
5430
matrix:
55-
php: [8.2, 8.1]
56-
laravel: ['9.*', '10.*', '11.*']
31+
php: [8.3, 8.2]
32+
laravel: ["10.*", "11.*"]
5733
os: [ubuntu-latest]
5834
include:
5935
- laravel: 10.*
6036
testbench: ^8.0
61-
- laravel: 9.*
62-
testbench: ^7.0
6337
- laravel: 11.*
6438
testbench: ^9.0
65-
exclude:
66-
- laravel: 11.*
67-
php: 8.1
68-
6939
runs-on: ${{ matrix.os }}
70-
7140
name: phpunit (P${{ matrix.php }} - L${{ matrix.laravel }})
72-
7341
env:
7442
DB_HOST: 127.0.0.1
75-
76-
77-
7843
steps:
7944
- uses: actions/checkout@v2
80-
81-
82-
8345
- uses: shivammathur/setup-php@v2
8446
with:
8547
php-version: ${{ matrix.php }}
86-
87-
88-
8948
- uses: shogo82148/actions-setup-mysql@v1
9049
with:
91-
mysql-version: '8.0'
50+
mysql-version: "8.0"
9251
user: loadfile
9352
password: loadfile-testing
9453
my-cnf: local_infile=1
95-
96-
97-
9854
- run: mysql -uroot -h127.0.0.1 -e 'create database loadfile'
99-
100-
101-
10255
- run: |
10356
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
10457
composer update --no-interaction --prefer-dist
105-
106-
107-
10858
- run: vendor/bin/phpunit

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@
2121
}
2222
},
2323
"require": {
24-
"php": "^8.1",
25-
"illuminate/database": "^9.0|^10.0|^11.0"
24+
"php": "^8.2",
25+
"illuminate/database": "^10.0|^11.0"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^9|^10.5",
29-
"orchestra/testbench": "^7.0|^8.0|^9.0",
28+
"phpunit/phpunit": "^10.5",
29+
"orchestra/testbench": "^8.0|^9.0",
3030
"squizlabs/php_codesniffer": "^3.6",
31-
"vimeo/psalm": "^4.7|^5.22",
32-
"nunomaduro/larastan": "^2.0"
31+
"larastan/larastan": "^2.0|^3.0"
3332
},
3433
"scripts": {
3534
"test-unit": "php ./vendor/bin/phpunit tests/Unit",

0 commit comments

Comments
 (0)