mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 09:50:49 +00:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Code Analysis [no dev]
|
|
|
|
on:
|
|
pull_request: null
|
|
|
|
env:
|
|
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
|
|
COMPOSER_ROOT_VERSION: "dev-main"
|
|
|
|
jobs:
|
|
matrix:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
actions:
|
|
-
|
|
name: 'Rector List'
|
|
run: bin/rector list
|
|
|
|
-
|
|
name: 'Show command'
|
|
run: bin/rector show --ansi
|
|
|
|
name: ${{ matrix.actions.name }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
# see https://github.com/shivammathur/setup-php
|
|
- uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 7.4
|
|
coverage: none
|
|
|
|
# must be removed, as local config is missing dev dependencies
|
|
- run: rm phpstan-for-rector.neon
|
|
|
|
- run: composer install --no-progress --ansi --no-dev
|
|
|
|
- run: ${{ matrix.actions.run }}
|