Skip to content

Running CI on PHP 8.2 #271

Running CI on PHP 8.2

Running CI on PHP 8.2 #271

Workflow file for this run

name: "CI"
on:
push:
branches: "*"
pull_request:
env:
php-version: 8.2
cache-version: 1
jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
env:
php-extensions: ast
steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: "Setup PHP extension caching"
id: extcache
uses: shivammathur/cache-extensions@v1
with:
php-version: ${{ env.php-version }}
extensions: ${{ env.php-extensions }}
key: php-extensions-${{ runner.os }}-${{ env.cache-version }}
- name: "Cache extensions"
uses: actions/cache@v2
with:
path: ${{ steps.extcache.outputs.dir }}
key: ${{ steps.extcache.outputs.key }}
restore-keys: ${{ steps.extcache.outputs.key }}
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.php-version }}
extensions: ${{ env.php-extensions }}
coverage: none
- name: "Cache Composer dependencies"
uses: actions/cache@v2
with:
path: "~/.composer/cache"
key: composer-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('composer.json') }}
composer-dependencies-${{ runner.os }}-${{ env.cache-version }}-
- name: "Install Composer dependencies"
run: |
composer install -n --prefer-dist
- name: "Lint"
run: |
composer run-script lint