1
0
mirror of https://github.com/themsaid/ibis.git synced 2025-01-17 13:38:33 +01:00
2022-11-27 19:06:26 +01:00

35 lines
987 B
YAML

name: CI for Ibis
on: [push, pull_request]
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
steps:
# This is required as this package does not support PHP 8 (yet)
- name: Setup PHP 8.1
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Checkout Code
uses: actions/checkout@v2
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Use Composer Cache
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer Install
run: "composer install --no-ansi --no-interaction --no-scripts --prefer-dist"
- name: Execute PHP CS Fixer review
run: composer run csfix-review