Pull Request CI / Composer Normalize #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
# This workflow will run after a pull request is opened or updated, assuming the pull request is labeled with "Vetted". | |
on: | |
workflow_run: | |
workflows: | |
- "Pull Request / Run Checks" | |
types: | |
- completed | |
permissions: | |
contents: read | |
jobs: | |
normalize: | |
name: "Composer Normalize" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # [email protected] | |
with: | |
php-version: ${{ env.PHP_VERSION }} | |
coverage: pcov | |
extensions: mbstring | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: composer require --dev ergebnis/composer-normalize | |
- run: composer config allow-plugins.ergebnis/composer-normalize true | |
- run: composer normalize |