Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

[*.yml]
indent_size = 2
18 changes: 9 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,23 @@ on:
pull_request:

jobs:

tests:
name: Tests (PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }})
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.4', '8.0', '8.1', '8.2']
operating-system: ["ubuntu-latest"]
php-versions: ["7.4", "8.0", "8.1", "8.2"]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo '💡 The ${{ github.repository }} repository has been cloned to the runner.'

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
Expand All @@ -38,11 +37,12 @@ jobs:
uses: "ramsey/composer-install@v2"

- name: Run tests
run: vendor/bin/phpunit --coverage-text
run: vendor/bin/phpunit --coverage-clover .phpunit.cache/clover.xml

- name: Upload coverage reports to Codecov
if: ${{ success() && matrix.php-versions == '8.2' }}
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- run: echo "🍏 This job's status is ${{ job.status }}."
with:
files: ./.phpunit.cache/clover.xml
fail_ci_if_error: true
verbose: true
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
"name": "Kevin Saliou",
"email": "kevin@saliou.name",
"homepage": "http://kevin.saliou.name"
},
{
"name": "Artur Weigandt",
"email": "artur@wlabs.de",
"homepage": "https://wlabs.de"
}
],
"require": {
Expand Down