Skip to content

Commit

Permalink
Update actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kitar committed Feb 14, 2023
1 parent ea40607 commit f7c02b5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 34 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,34 @@ jobs:

strategy:
matrix:
php-version: ['7.3', '7.4', '8.0', '8.1', '8.2']
include:
- php: 8.2
illuminate: ^10.0
- php: 8.1
illuminate: ^9.0
- php: 8.0
illuminate: ^8.0
- php: 7.4
illuminate: ^7.0
- php: 7.3
illuminate: ^6.0

name: PHP ${{ matrix.php }} - Illuminate ${{ matrix.illuminate }}

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

- name: Setup PHP ${{ matrix.php-version }}
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Validate composer.json and composer.lock
run: composer validate
php-version: ${{ matrix.php }}

- name: Install dependencies
run: composer update --prefer-dist --no-progress
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

- name: Run test suite
run: composer run-script ci-test

- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v3
if: matrix.php == '8.2'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ composer.lock
*.project
.idea/
.phpunit.result.cache
.phpunit.cache
.env
42 changes: 17 additions & 25 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="laravel-dynamodb Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="build/html" />
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
<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">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/html"/>
<text outputFile="build/coverage.txt"/>
</report>
</coverage>
<testsuites>
<testsuite name="laravel-dynamodb Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<logging/>
</phpunit>

0 comments on commit f7c02b5

Please sign in to comment.