Merge pull request #23776 from nextcloud/fix/noid/update-psalm-baseline-update-to-composer-psalm

Update daily "update psalm baseline" job to composer psalm
This commit is contained in:
Morris Jobke 2020-10-29 10:06:18 +01:00 committed by GitHub
commit 3df62c1095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -15,13 +15,15 @@ jobs:
auth_header="$(git config --local --get http.https://github.com/.extraheader)" auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Remove composer.json - name: Set up php7.4
shell: bash uses: shivammathur/setup-php@master
run: rm composer.json composer.lock
- name: Psalm
uses: docker://jakzal/phpqa:php7.4-alpine
with: with:
args: psalm --monochrome --no-progress --output-format=text --update-baseline php-version: 7.4
coverage: none
- name: Composer install
run: composer i
- name: Psalm
run: composer run psalm -- --monochrome --no-progress --output-format=text --update-baseline
- name: Reset composer.json and composer.lock - name: Reset composer.json and composer.lock
run: | run: |
git checkout -- composer.json composer.lock git checkout -- composer.json composer.lock