Skip to content

Commit

Permalink
Merge pull request #2 from php-etl/feature/update-gh-actions
Browse files Browse the repository at this point in the history
feature/update-gh-actions : update gh actions
  • Loading branch information
gplanchat authored Oct 6, 2021
2 parents 2236246 + 09703ef commit 65d167c
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 60 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/actions.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/infection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Mutations
on: push
jobs:
infection:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer:v2
coverage: pcov
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0

- name: Infection
run: |
wget -q https://github.com/infection/infection/releases/download/0.20.0/infection.phar
wget -q https://github.com/infection/infection/releases/download/0.20.0/infection.phar.asc
chmod +x infection.phar
./infection.phar
- name: Store infection log
uses: actions/upload-artifact@v2
with:
path: infection.log
23 changes: 23 additions & 0 deletions .github/workflows/phpstan-5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PHPStan level 5
on: push
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
level: 5
php_version: 8.0
23 changes: 23 additions & 0 deletions .github/workflows/phpstan-7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PHPStan level 7
on: push
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
level: 7
php_version: 8.0
23 changes: 23 additions & 0 deletions .github/workflows/phpstan-8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PHPStan level 8
on: push
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
level: 8
php_version: 8.0
44 changes: 44 additions & 0 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Quality (PHPStan level 4)
on: push
jobs:
cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cs-Fixer
run: |
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
chmod a+x php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
phpspec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
- name: PHP Spec
run: bin/phpspec run spec

phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
level: 4
php_version: 8.0

0 comments on commit 65d167c

Please sign in to comment.