From a267b0dcdef8dd92beeee5d10564a1102cb0fc6c Mon Sep 17 00:00:00 2001 From: m1ke Date: Wed, 28 Feb 2024 10:49:55 +0000 Subject: [PATCH] Add psalm to actions --- .github/workflows/psalm.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/psalm.yml diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml new file mode 100644 index 0000000..0bf5f52 --- /dev/null +++ b/.github/workflows/psalm.yml @@ -0,0 +1,28 @@ +name: Psalm static analysis + +on: [push] + +jobs: + build: + name: ${{matrix.operating-system}}, PHP ${{ matrix.php }} + + runs-on: ${{ matrix.operating-system }} + + strategy: + matrix: + operating-system: [ ubuntu-latest ] + php: ['8.1' ] + + steps: + - uses: actions/checkout@master + + - name: Setup PHP + uses: nanasess/setup-php@master + with: + php-version: ${{ matrix.php }} + + - name: Install dependencies + run: composer install + + - name: Run psalm + run: php vendor/bin/psalm