summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/static-code-analysis.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml
new file mode 100644
index 00000000000..5633c3abc29
--- /dev/null
+++ b/.github/workflows/static-code-analysis.yml
@@ -0,0 +1,22 @@
+name: Static code analysis
+
+on: [pull_request]
+
+jobs:
+ static-code-analysis:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Checkout submodules
+ shell: bash
+ run: |
+ 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
+ with:
+ args: psalm --monochrome --no-progress --output-format=text