Skip to content

Commit

Permalink
Enhace wokflows (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Oct 7, 2021
1 parent 20d75f5 commit 09f0922
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 42 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Expand Up @@ -12,3 +12,6 @@ trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
13 changes: 4 additions & 9 deletions .github/workflows/build.yml
Expand Up @@ -22,8 +22,8 @@ jobs:
- windows-latest

php:
- "7.4"
- "8.0"
- 7.4
- 8.0

steps:
- name: Checkout
Expand Down Expand Up @@ -71,14 +71,9 @@ jobs:
- name: Update composer
run: composer self-update

- name: Install dependencies with composer php 7.4
if: matrix.php == '7.4'
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Install dependencies with composer php 8.0
if: matrix.php == '8.0'
run: composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
- name: Install dependencies with composer
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run tests with phpunit
run: vendor/bin/phpunit --colors=always
2 changes: 1 addition & 1 deletion .github/workflows/mutation.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
- ubuntu-latest

php:
- "7.4"
- 7.4

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
- ubuntu-latest

php:
- "7.4"
- 7.4

steps:
- name: Checkout
Expand Down
66 changes: 35 additions & 31 deletions .scrutinizer.yml
@@ -1,36 +1,40 @@
checks:
php: true
php: true

filter:
paths:
- "src/*"
paths:
- "src/*"

build:
nodes:
analysis:
environment:
php: 7.4.12

tests:
override:
- php-scrutinizer-run

tests-and-coverage:
environment:
php: 7.4.12

dependencies:
override:
- composer self-update
- composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

tests:
override:
-
command: "./vendor/bin/phpunit --coverage-clover ./coverage.xml"
on_node: 1
coverage:
file: coverage.xml
format: php-clover


environment:
php:
version: 8.0.11
ini:
"xdebug.mode": coverage

nodes:
analysis:
tests:
override:
- php-scrutinizer-run

phpunit:
dependencies:
override:
- wget https://sqlite.org/2021/sqlite-autoconf-3340100.tar.gz --no-check-certificate
- tar -xvf sqlite-autoconf-3340100.tar.gz && cd sqlite-autoconf-3340100
- ./configure
- make
- sudo make install
- export PATH="/usr/local/lib:$PATH"
- sqlite3 --version && cd ..
- composer self-update
- composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

tests:
override:
- command: "./vendor/bin/phpunit --coverage-clover ./coverage.xml"
on_node: 1
coverage:
file: coverage.xml
format: php-clover

0 comments on commit 09f0922

Please sign in to comment.