From 6f80fb37a05fe67485692665e9caf975232ca40e Mon Sep 17 00:00:00 2001 From: David Rans Date: Tue, 20 Aug 2024 10:58:40 -0700 Subject: [PATCH] Add psalm action --- .github/workflows/psalm.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..6eeca5d --- /dev/null +++ b/.github/workflows/psalm.yml @@ -0,0 +1,35 @@ +name: psalm + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + +jobs: + psalm: + name: psalm + runs-on: ubuntu-latest + + strategy: + matrix: + php-version: '8.3' + + timeout-minutes: 15 + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up PHP ${{ matrix.php-version }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + + + - name: Run composer install + run: composer install + + - name: Run psalm + run: ./vendor/bin/psalm --output-format=github --update-baseline