Bump shivammathur/setup-php from 2.26.0 to 2.27.0 #100
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: 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@v3 | |
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'] }} |