Merge pull request #94 from neo4j-php/feature/change-license-to-mit #115
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: lint | |
on: | |
push: | |
branches: [ 'main' ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: "Linting (PHP ${{ matrix.php-version }})" | |
runs-on: "ubuntu-22.04" | |
continue-on-error: true | |
strategy: | |
matrix: | |
php-version: [ "8.1" ] | |
env: | |
COMPOSER_VERSION: 2 | |
COVERAGE_DRIVER: none | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: ${{ env.COVERAGE_DRIVER }} | |
tools: composer:${{ env.COMPOSER_VERSION }} | |
- name: Install dependencies | |
run: composer install --no-interaction --prefer-dist --no-progress | |
- name: Run PHP-CS-Fixer | |
run: php vendor/bin/php-cs-fixer fix --config .php-cs-fixer.dist.php --verbose --dry-run | |
validate: | |
name: "Validating composer.json" | |
runs-on: "ubuntu-22.04" | |
continue-on-error: true | |
env: | |
COMPOSER_VERSION: 2 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
tools: composer:${{ env.COMPOSER_VERSION }} | |
- name: Run composer validate | |
run: composer validate |