Skip to content

Commit

Permalink
Update test pipelines and dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Nov 5, 2020
1 parent 30a15de commit a70b42d
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v2.3.4

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mutation.yml
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v2.3.4

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand All @@ -49,6 +49,6 @@ jobs:
- name: Run infection
run: |
git fetch --depth=1 origin $GITHUB_BASE_REF
vendor/bin/infection -j2 --git-diff-filter=A --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --ignore-msi-with-no-mutations --only-covered
vendor/bin/roave-infection-static-analysis-plugin -j2 --git-diff-filter=A --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --ignore-msi-with-no-mutations --only-covered
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/static.yml
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v2.3.4

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand All @@ -43,5 +43,5 @@ jobs:
- name: Install dependencies with composer
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Static analysis with psalm
- name: Static analysis
run: vendor/bin/psalm --shepherd --stats --output-format=checkstyle | cs2pr --graceful-warnings --colorize
34 changes: 24 additions & 10 deletions .scrutinizer.yml
@@ -1,18 +1,32 @@
build:
environment:
php: "7.4"
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
checks:
php: true

filter:
paths:
- "src/*"
checks:
php: true

tools:
php_code_coverage:
enabled: true
external_code_coverage:
timeout: 600

build:
environment:
php: 7.4.12
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
dependencies:
override:
- 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
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -13,6 +13,7 @@
[![Code Coverage](https://scrutinizer-ci.com/g/yiisoft/auth-jwt/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/yiisoft/auth-jwt/?branch=master)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiisoft%2Fauth-jwt%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/auth-jwt/master)
[![static analysis](https://github.com/yiisoft/auth-jwt/workflows/static%20analysis/badge.svg)](https://github.com/yiisoft/auth-jwt/actions?query=workflow%3A%22static+analysis%22)
[![type-coverage](https://shepherd.dev/github/yiisoft/auth-jwt/coverage.svg)](https://shepherd.dev/github/yiisoft/auth-jwt)

The package provides JWT authentication method for [Yii Auth](https://github.com/yiisoft/auth/).

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -30,8 +30,8 @@
},
"require-dev": {
"nyholm/psr7": "^1.3",
"infection/infection": "^0.20.0",
"phpunit/phpunit": "^9.4",
"roave/infection-static-analysis-plugin": "^1.3",
"vimeo/psalm": "^4.1"
},
"autoload": {
Expand Down

0 comments on commit a70b42d

Please sign in to comment.