summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-10-29 09:58:25 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-10-29 09:58:25 +0100
commitf18d9cd3101c44a8e62ee7a37f38bd98c6b7ba4b (patch)
tree36c1320d48b3ca2a767ca3b53812b0f3b1b06ff0 /.github
parent3076eb4e9bb4006a5670aa08a2b35d2cfa42cd6c (diff)
downloadnextcloud-server-f18d9cd3101c44a8e62ee7a37f38bd98c6b7ba4b.tar.gz
nextcloud-server-f18d9cd3101c44a8e62ee7a37f38bd98c6b7ba4b.zip
Update daily "update psalm baseline" job to composer psalm
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-psalm-baseline.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/update-psalm-baseline.yml b/.github/workflows/update-psalm-baseline.yml
index 6ba585b676c..e1cb2772e28 100644
--- a/.github/workflows/update-psalm-baseline.yml
+++ b/.github/workflows/update-psalm-baseline.yml
@@ -15,13 +15,15 @@ jobs:
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- - name: Remove composer.json
- shell: bash
- run: rm composer.json composer.lock
- - name: Psalm
- uses: docker://jakzal/phpqa:php7.4-alpine
+ - name: Set up php7.4
+ uses: shivammathur/setup-php@master
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
run: |
git checkout -- composer.json composer.lock