From a70b42d6bb19684547e9fd32f64c7c51d1109207 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com> Date: Thu, 5 Nov 2020 18:34:07 -0300 Subject: [PATCH] Update test pipelines and dev dependencies --- .github/workflows/build.yml | 2 +- .github/workflows/mutation.yml | 4 ++-- .github/workflows/static.yml | 4 ++-- .scrutinizer.yml | 34 ++++++++++++++++++++++++---------- README.md | 1 + composer.json | 2 +- 6 files changed, 31 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cfc1278..a4db208 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 8e03d44..fb1a9d5 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -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 @@ -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 }} diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 5be4391..779582e 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -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 @@ -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 diff --git a/.scrutinizer.yml b/.scrutinizer.yml index c7b177a..dcc8193 100644 --- a/.scrutinizer.yml +++ b/.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 diff --git a/README.md b/README.md index 3ebb891..40b0a8e 100644 --- a/README.md +++ b/README.md @@ -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/). diff --git a/composer.json b/composer.json index 376a3c2..f5605b3 100644 --- a/composer.json +++ b/composer.json @@ -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": {