Skip to content

Inherit env vars when running CLI test processes #64

Inherit env vars when running CLI test processes

Inherit env vars when running CLI test processes #64

Workflow file for this run

name: Continuous integration
on:
pull_request: null
push:
branches:
- main
jobs:
static-analysis:
runs-on: ubuntu-22.04
strategy:
matrix:
php-version: ['8.2', '8.3']
command: ['cs', 'stan']
continue-on-error: ${{ matrix.php-version == '8.3' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer
coverage: none
- run: composer install --no-interaction --prefer-dist ${{ matrix.php-version == '8.3' && '--ignore-platform-req=php' || '' }}
- run: composer ${{ matrix.command }}