Skip to content

fix: remove higher platform #66

fix: remove higher platform

fix: remove higher platform #66

Workflow file for this run

name: Code Quality
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build on PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
matrix:
php: ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5"]
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.2
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false
- name: Set up PHP
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
with:
php-version: ${{ matrix.php }}
tools: composer:v2, wp-cli
coverage: none
- name: Validate Composer configuration
run: |
composer validate
- name: Install Composer dependencies
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # v3.1.1
with:
composer-options: "--no-progress"
dependency-versions: "highest"
- name: Install WPGraphQL dependencies
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # v3.1.1
with:
composer-options: "--no-progress"
dependency-versions: "highest"
working-directory: ./source
- name: Generate stubfile
run: |
bash -x ./generate.sh
- name: Lint stubfile
run: |
php -l wp-graphql-stubs.php
- name: Run PHPStan
run: |
vendor/bin/phpstan
- name: Check for changes
run: |
git diff --exit-code