mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-25 00:00:41 +08:00
fix the update-baseline-workflow
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
2afc711983
commit
82c371b519
2 changed files with 12 additions and 14 deletions
20
.github/workflows/psalm-update-baseline.yml
vendored
20
.github/workflows/psalm-update-baseline.yml
vendored
|
@ -11,8 +11,6 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Set up php8.0
|
||||
uses: shivammathur/setup-php@v2
|
||||
|
@ -21,20 +19,16 @@ jobs:
|
|||
extensions: apcu
|
||||
coverage: none
|
||||
|
||||
- name: change directory
|
||||
run: cd php
|
||||
|
||||
- name: Composer install
|
||||
run: composer install
|
||||
|
||||
- name: Psalm
|
||||
run: composer run psalm -- --monochrome --no-progress --output-format=text --update-baseline
|
||||
continue-on-error: true
|
||||
|
||||
- name: Reset composer
|
||||
- name: Run script
|
||||
run: |
|
||||
set -x
|
||||
cd php
|
||||
composer global require vimeo/psalm --prefer-dist --no-progress --dev
|
||||
composer install
|
||||
composer run psalm -- --monochrome --no-progress --output-format=text --update-baseline
|
||||
git clean -f lib/composer
|
||||
git checkout composer.json composer.lock lib/composer
|
||||
continue-on-error: true
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
|
|
|
@ -17,5 +17,9 @@
|
|||
"slim/twig-view": "^3.2",
|
||||
"slim/csrf": "^1.2",
|
||||
"ext-apcu": "*"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"psalm": "psalm --threads=1",
|
||||
"psalm:update-baseline": "psalm --threads=1 --update-baseline"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue