chore: bump actions/checkout from 3 to 4 #96
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Laravel Sabre static analysis | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
psalm: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [8.2] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup PHP ${{ matrix.php-version }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache composer files | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-v4-${{ hashFiles('**/composer.json') }}-${{ matrix.php-version }} | |
restore-keys: | | |
${{ runner.os }}-composer-v4-${{ hashFiles('**/composer.json') }}-${{ matrix.php-version }} | |
${{ runner.os }}-composer-v4-${{ hashFiles('**/composer.json') }} | |
${{ runner.os }}-composer-v4- | |
- name: Install dependencies | |
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader | |
- name: Run psalm | |
run: vendor/bin/psalm --output-format=github | |
phpstan: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [8.2] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup PHP ${{ matrix.php-version }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache composer files | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-v4-${{ hashFiles('**/composer.json') }}-${{ matrix.php-version }} | |
restore-keys: | | |
${{ runner.os }}-composer-v4-${{ hashFiles('**/composer.json') }}-${{ matrix.php-version }} | |
${{ runner.os }}-composer-v4-${{ hashFiles('**/composer.json') }} | |
${{ runner.os }}-composer-v4- | |
- name: Install dependencies | |
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader | |
- name : Run phpstan | |
run: vendor/bin/phpstan analyse |