Skip to content

chore: bump actions/upload-artifact from 3 to 4 #149

chore: bump actions/upload-artifact from 3 to 4

chore: bump actions/upload-artifact from 3 to 4 #149

Workflow file for this run

name: Laravel cloudflare 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-v5-${{ hashFiles('**/composer.json') }}-${{ matrix.php-version }}
restore-keys: |
${{ runner.os }}-composer-v5-${{ hashFiles('**/composer.json') }}-${{ matrix.php-version }}
${{ runner.os }}-composer-v5-${{ hashFiles('**/composer.json') }}-
${{ runner.os }}-composer-v5-
- 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-v5-${{ hashFiles('**/composer.json') }}-${{ matrix.php-version }}
restore-keys: |
${{ runner.os }}-composer-v5-${{ hashFiles('**/composer.json') }}-${{ matrix.php-version }}
${{ runner.os }}-composer-v5-${{ hashFiles('**/composer.json') }}-
${{ runner.os }}-composer-v5-
- name: Install dependencies
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
- name : Run phpstan
run: vendor/bin/phpstan analyse