mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
* gha: fix workflow by allowing the composer-normalize plugin We don't need to enable it in the project itself, but at least in this workflow which explicitly uses it. See https://github.com/barryvdh/laravel-ide-helper/actions/runs/3980013548/jobs/6822812621#step:4:34 ``` Error: ergebnis/composer-normalize (installed globally) contains a Composer plugin which is blocked by your allow-plugins config. You may add it to the list if you consider it safe. You can run "composer global config --no-plugins allow-plugins.ergebnis/composer-normalize [true|false]" to enable it (true) or disable it explicitly and suppress this exception (false) ``` * gha: also run this workflow when it is changed itself
29 lines
715 B
YAML
29 lines
715 B
YAML
name: normalize composer.json
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- .github/workflows/composer-normalize.yml
|
|
- composer.json
|
|
|
|
jobs:
|
|
normalize:
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Git checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Validate Composer configuration
|
|
run: composer validate --strict
|
|
|
|
- name: Normalize composer.json
|
|
run: |
|
|
composer global config --no-plugins allow-plugins.ergebnis/composer-normalize true
|
|
composer global require ergebnis/composer-normalize
|
|
composer normalize
|
|
|
|
- uses: stefanzweifel/[email protected]
|
|
with:
|
|
commit_message: normalize composer.json
|