Skip to content

Commit 09f0922

Browse files
Enhace wokflows (#3)
1 parent 20d75f5 commit 09f0922

5 files changed

Lines changed: 44 additions & 42 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ trim_trailing_whitespace = true
1212

1313
[*.md]
1414
trim_trailing_whitespace = false
15+
16+
[*.yml]
17+
indent_size = 2

.github/workflows/build.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
- windows-latest
2323

2424
php:
25-
- "7.4"
26-
- "8.0"
25+
- 7.4
26+
- 8.0
2727

2828
steps:
2929
- name: Checkout
@@ -71,14 +71,9 @@ jobs:
7171
7272
- name: Update composer
7373
run: composer self-update
74-
75-
- name: Install dependencies with composer php 7.4
76-
if: matrix.php == '7.4'
77-
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
7874

79-
- name: Install dependencies with composer php 8.0
80-
if: matrix.php == '8.0'
81-
run: composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
75+
- name: Install dependencies with composer
76+
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
8277

8378
- name: Run tests with phpunit
8479
run: vendor/bin/phpunit --colors=always

.github/workflows/mutation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- ubuntu-latest
1919

2020
php:
21-
- "7.4"
21+
- 7.4
2222

2323
steps:
2424
- name: Checkout

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- ubuntu-latest
1717

1818
php:
19-
- "7.4"
19+
- 7.4
2020

2121
steps:
2222
- name: Checkout

.scrutinizer.yml

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,40 @@
11
checks:
2-
php: true
2+
php: true
33

44
filter:
5-
paths:
6-
- "src/*"
5+
paths:
6+
- "src/*"
77

88
build:
9-
nodes:
10-
analysis:
11-
environment:
12-
php: 7.4.12
13-
14-
tests:
15-
override:
16-
- php-scrutinizer-run
17-
18-
tests-and-coverage:
19-
environment:
20-
php: 7.4.12
21-
22-
dependencies:
23-
override:
24-
- composer self-update
25-
- composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
26-
27-
tests:
28-
override:
29-
-
30-
command: "./vendor/bin/phpunit --coverage-clover ./coverage.xml"
31-
on_node: 1
32-
coverage:
33-
file: coverage.xml
34-
format: php-clover
35-
36-
9+
environment:
10+
php:
11+
version: 8.0.11
12+
ini:
13+
"xdebug.mode": coverage
14+
15+
nodes:
16+
analysis:
17+
tests:
18+
override:
19+
- php-scrutinizer-run
20+
21+
phpunit:
22+
dependencies:
23+
override:
24+
- wget https://sqlite.org/2021/sqlite-autoconf-3340100.tar.gz --no-check-certificate
25+
- tar -xvf sqlite-autoconf-3340100.tar.gz && cd sqlite-autoconf-3340100
26+
- ./configure
27+
- make
28+
- sudo make install
29+
- export PATH="/usr/local/lib:$PATH"
30+
- sqlite3 --version && cd ..
31+
- composer self-update
32+
- composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
33+
34+
tests:
35+
override:
36+
- command: "./vendor/bin/phpunit --coverage-clover ./coverage.xml"
37+
on_node: 1
38+
coverage:
39+
file: coverage.xml
40+
format: php-clover

0 commit comments

Comments
 (0)