Skip to content

Commit 0c05477

Browse files
kbsaliArt4
andauthored
chore: add Artur to the list of package authors (#323)
* chore: add Artur to the list of package authors * chore: codecov setup (take 2) * Update .github/workflows/tests.yml Co-authored-by: Artur Weigandt <Art4@users.noreply.github.com> * Update .github/workflows/tests.yml Co-authored-by: Artur Weigandt <Art4@users.noreply.github.com> --------- Co-authored-by: Artur Weigandt <Art4@users.noreply.github.com>
1 parent 0ac236a commit 0c05477

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ charset = utf-8
77
trim_trailing_whitespace = true
88
insert_final_newline = true
99
end_of_line = lf
10+
11+
[*.yml]
12+
indent_size = 2

.github/workflows/tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,23 @@ on:
55
pull_request:
66

77
jobs:
8-
98
tests:
109
name: Tests (PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }})
1110
runs-on: ubuntu-latest
1211

1312
strategy:
1413
fail-fast: false
1514
matrix:
16-
operating-system: ['ubuntu-latest']
17-
php-versions: ['7.4', '8.0', '8.1', '8.2']
15+
operating-system: ["ubuntu-latest"]
16+
php-versions: ["7.4", "8.0", "8.1", "8.2"]
1817

1918
steps:
2019
- name: Checkout
2120
uses: actions/checkout@v4
2221
with:
2322
fetch-depth: 2
2423

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

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

4039
- name: Run tests
41-
run: vendor/bin/phpunit --coverage-text
40+
run: vendor/bin/phpunit --coverage-clover .phpunit.cache/clover.xml
4241

4342
- name: Upload coverage reports to Codecov
43+
if: ${{ success() && matrix.php-versions == '8.2' }}
4444
uses: codecov/codecov-action@v3
45-
env:
46-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
47-
48-
- run: echo "🍏 This job's status is ${{ job.status }}."
45+
with:
46+
files: ./.phpunit.cache/clover.xml
47+
fail_ci_if_error: true
48+
verbose: true

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
"name": "Kevin Saliou",
1414
"email": "kevin@saliou.name",
1515
"homepage": "http://kevin.saliou.name"
16+
},
17+
{
18+
"name": "Artur Weigandt",
19+
"email": "artur@wlabs.de",
20+
"homepage": "https://wlabs.de"
1621
}
1722
],
1823
"require": {

0 commit comments

Comments
 (0)