Skip to content

Merge pull request #147 from dekiftw/#146-bit-column-type #475

Merge pull request #147 from dekiftw/#146-bit-column-type

Merge pull request #147 from dekiftw/#146-bit-column-type #475

Workflow file for this run

name: "Validations"
on: [push]
jobs:
validate-code-style:
name: PSR-12 Code style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Validate composer.json and composer.lock
run: composer validate
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install PHP_CodeSniffer composer package
run: composer global require "squizlabs/php_codesniffer=*"
- name: Validate PSR-12 Code Style
run: ~/.composer/vendor/bin/phpcs
validate-code-static:
name: Static Code with PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
env:
extensions: mbstring, intl, json, phalcon-5.0.1
key: cache-v2.2~17.05.2020
needs: validate-code-style
strategy:
fail-fast: false
matrix:
php-versions: ['7.4', '8.0', '8.1']
steps:
- name: Checkout the code
uses: actions/checkout@v1
- name: Setup cache environment
id: cache-env
uses: shivammathur/cache-extensions@v1
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.extensions }}
key: ${{ env.key }}
- name: Cache extensions
uses: actions/cache@v1
with:
path: ${{ steps.cache-env.outputs.dir }}
key: ${{ steps.cache-env.outputs.key }}
restore-keys: ${{ steps.cache-env.outputs.key }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.extensions }}
tools: pecl
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies with PHPStan
run: composer require --prefer-dist --no-progress --no-suggest --dev phpstan/phpstan
- name: Run Psalm
if: always()
run: vendor/bin/psalm --show-info=false
- name: Run PHPStan
if: always()
run: vendor/bin/phpstan analyse -l 5 src