Skip to content

Commit f7c02b5

Browse files
committed
Update actions workflows
1 parent ea40607 commit f7c02b5

File tree

3 files changed

+37
-34
lines changed

3 files changed

+37
-34
lines changed

.github/workflows/php.yml

+19-9
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,34 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
php-version: ['7.3', '7.4', '8.0', '8.1', '8.2']
12+
include:
13+
- php: 8.2
14+
illuminate: ^10.0
15+
- php: 8.1
16+
illuminate: ^9.0
17+
- php: 8.0
18+
illuminate: ^8.0
19+
- php: 7.4
20+
illuminate: ^7.0
21+
- php: 7.3
22+
illuminate: ^6.0
23+
24+
name: PHP ${{ matrix.php }} - Illuminate ${{ matrix.illuminate }}
1325

1426
steps:
1527
- name: Checkout
16-
uses: actions/checkout@v2
28+
uses: actions/checkout@v3
1729

18-
- name: Setup PHP ${{ matrix.php-version }}
30+
- name: Setup PHP ${{ matrix.php }}
1931
uses: shivammathur/setup-php@v2
2032
with:
21-
php-version: ${{ matrix.php-version }}
22-
23-
- name: Validate composer.json and composer.lock
24-
run: composer validate
33+
php-version: ${{ matrix.php }}
2534

2635
- name: Install dependencies
27-
run: composer update --prefer-dist --no-progress
36+
run: composer require "illuminate/support:${{ matrix.illuminate }}" "illuminate/container:${{ matrix.illuminate }}" "illuminate/database:${{ matrix.illuminate }}" "illuminate/hashing:${{ matrix.illuminate }}" --no-interaction --no-progress --no-suggest
2837

2938
- name: Run test suite
3039
run: composer run-script ci-test
3140

32-
- uses: codecov/codecov-action@v1
41+
- uses: codecov/codecov-action@v3
42+
if: matrix.php == '8.2'

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ composer.lock
1111
*.project
1212
.idea/
1313
.phpunit.result.cache
14+
.phpunit.cache
1415
.env

phpunit.xml.dist

+17-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false">
12-
<testsuites>
13-
<testsuite name="laravel-dynamodb Test Suite">
14-
<directory>tests</directory>
15-
</testsuite>
16-
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
<logging>
23-
<log type="coverage-html" target="build/html" />
24-
<log type="coverage-text" target="build/coverage.txt"/>
25-
<log type="coverage-clover" target="build/logs/clover.xml"/>
26-
</logging>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">src/</directory>
6+
</include>
7+
<report>
8+
<clover outputFile="build/logs/clover.xml"/>
9+
<html outputDirectory="build/html"/>
10+
<text outputFile="build/coverage.txt"/>
11+
</report>
12+
</coverage>
13+
<testsuites>
14+
<testsuite name="laravel-dynamodb Test Suite">
15+
<directory>tests</directory>
16+
</testsuite>
17+
</testsuites>
18+
<logging/>
2719
</phpunit>

0 commit comments

Comments
 (0)