Skip to content

Commit

Permalink
Merge branch 'feature/workflow-psalm' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
deff-dev committed Aug 17, 2023
2 parents 4c05fc8 + 2e78bea commit a3054fc
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,37 @@ jobs:
run: composer install --no-interaction --no-progress --prefer-dist

- name: Exec unit tests
run: sleep 20;docker compose exec php "composer" "tests"
run: sleep 20;docker compose exec php "composer" "tests"

php-salm:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.1]

name: PHP-PSalm ${{ matrix.php }}

steps:
- name: Code checkout
uses: actions/checkout@v3

- name: Get cache directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-${{ matrix.php }}-
- name: Install dependencies
run: composer install --no-interaction --no-progress --no-suggest --prefer-dist

- name: Srart PHP PSalm
run: composer salm

0 comments on commit a3054fc

Please sign in to comment.