Skip to content

Bump shivammathur/setup-php from 2.30.1 to 2.30.2 #108

Bump shivammathur/setup-php from 2.30.1 to 2.30.2

Bump shivammathur/setup-php from 2.30.1 to 2.30.2 #108

Workflow file for this run

name: PHP CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: PHP ${{ matrix.php_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php_version:
- '7.3'
- '7.4'
- '8.0'
steps:
- uses: actions/checkout@v4
- name: Use PHP ${{ matrix.php_version }}
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php_version }}
# extension-csv: xdebug, mbstring, curl, zip, dom, simplexml, intl, mysql
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Lint
run: composer run lint
# - name: Test
# run: composer run test
# env:
# DB_PORT: ${{ job.services.mysql.ports['3306'] }}