rector/.github/workflows/packages_tests.yaml
dependabot[bot] 759b7c881d
Bump actions/checkout from 2 to 3 (#1989)
* Bump actions/checkout from 2 to 3

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* try add unused property to test rectify

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
2022-04-01 11:19:44 +00:00

58 lines
1.8 KiB
YAML

# builds the content of https://github.com/rectorphp/rector-prefixed
# inspiration from https://github.com/phpstan/phpstan-src/blob/master/.github/workflows/phar.yml
name: Packages Tests
on:
pull_request: null
push:
branches:
- main
env:
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
COMPOSER_ROOT_VERSION: "dev-main"
jobs:
packages_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
repository_name:
# must be repository name, e.g. https://github.com/rectorphp/rector-nette
- rectorphp/rector-symfony
- rectorphp/rector-phpunit
- rectorphp/rector-doctrine
- rectorphp/rector-laravel
- rectorphp/rector-nette
- rectorphp/rector-cakephp
- rectorphp/rector-phpoffice
- sabbelasichon/typo3-rector
steps:
# see https://github.com/actions/checkout#usage
-
uses: "actions/checkout@v3"
with:
repository: ${{ matrix.repository_name }}
ref: "main"
-
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
coverage: none
- run: composer config minimum-stability dev
# test with current commit in a pull-request
-
run: composer require rector/rector-src dev-main#${{github.event.pull_request.head.sha}} --no-update
if: ${{ github.event_name == 'pull_request' }}
- run: composer install --ansi
- run: vendor/bin/phpunit