Skip to content

Commit 9d26121

Browse files
committed
#85920
1 parent 3c4b884 commit 9d26121

File tree

4 files changed

+1081
-1135
lines changed

4 files changed

+1081
-1135
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check & fix styling
2+
3+
on: [push]
4+
5+
jobs:
6+
php-cs-fixer:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
with:
13+
ref: ${{ github.head_ref }}
14+
15+
- name: Run PHP CS Fixer
16+
uses: docker://oskarstark/php-cs-fixer-ga
17+
with:
18+
args: --config=.php-cs-fixer.php --allow-risky=yes
19+
20+
- name: Commit changes
21+
uses: stefanzweifel/git-auto-commit-action@v4
22+
with:
23+
commit_message: Fix styling

.github/workflows/run-tests.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: run-tests
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
os: [ubuntu-latest, windows-latest]
16+
php: [8.0, 8.1]
17+
laravel: [8.*, 9.*]
18+
stability: [prefer-lowest, prefer-stable]
19+
include:
20+
- laravel: 8.*
21+
testbench: ^6.23
22+
- laravel: 9.*
23+
testbench: 7.*
24+
25+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v2
30+
31+
- name: Setup PHP
32+
uses: shivammathur/setup-php@v2
33+
with:
34+
php-version: ${{ matrix.php }}
35+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
36+
coverage: none
37+
38+
- name: Setup problem matchers
39+
run: |
40+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
41+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
42+
- name: Install dependencies
43+
run: |
44+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
45+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
46+
- name: Execute tests
47+
run: vendor/bin/phpunit --testsuite Unit

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"require": {
1717
"php": "^8.0",
1818
"elasticsearch/elasticsearch": "^7.13",
19-
"illuminate/support": "^8.0"
19+
"illuminate/support": "^8.0||^9.0"
2020
},
2121
"require-dev": {
2222
"friendsofphp/php-cs-fixer": "^3.2",
2323
"mockery/mockery": "^1.4",
24-
"orchestra/testbench": "^6.0",
24+
"orchestra/testbench": "^6.0||^7.0",
2525
"php-parallel-lint/php-var-dump-check": "^0.5.0",
2626
"phpunit/phpunit": "^9.0"
2727
},

0 commit comments

Comments
 (0)