Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 19 additions & 78 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,96 +12,37 @@ permissions:
contents: read

jobs:
php-test-7_4:
name: php 7.4
runs-on: 'ubuntu-latest'
test:
name: php ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.3', '8.4', '8.5']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: xdebug2
- name: Validate composer.json
run: composer validate --strict
- name: Run composer install
run: composer install -n --prefer-dist
- name: Run PHPUnit
run: php ./vendor/bin/phpunit
php-test-7_4-with-parser-4:
name: php 7.4 with parser v4
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
coverage: xdebug

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer:v2
coverage: xdebug2
- name: Validate composer.json
run: composer validate --strict
- name: Run composer install
run: composer install -n --prefer-dist
- name: Run downgrade nikic/php-parser
run: composer require nikic/php-parser "^4.12"
- name: Run PHPUnit
run: php ./vendor/bin/phpunit
php-test-8_0:
name: php 8.0
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer:v2
coverage: xdebug
- name: Validate composer.json
run: composer validate --strict
- name: Run composer install
run: composer install -n --prefer-dist
- name: Run PHPUnit
run: php ./vendor/bin/phpunit

php-test-8_1:
name: php 8.1
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- name: Run PHPUnit with coverage
run: php ./vendor/bin/phpunit --coverage-text

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer:v2
coverage: xdebug
- name: Validate composer.json
run: composer validate --strict
- name: Run composer install
run: composer install -n --prefer-dist
- name: Run PHPUnit
run: php ./vendor/bin/phpunit
php-test-8_2:
name: php 8.2
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- name: Run PHPStan level 6
run: php ./vendor/bin/phpstan analyse -c phpstan.neon

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer:v2
coverage: xdebug
- name: Validate composer.json
run: composer validate --strict
- name: Run composer install
run: composer install -n --prefer-dist
- name: Run PHPUnit
run: php ./vendor/bin/phpunit
- name: Verify example code generation is reproducible
run: php example/generate_code.php

- name: Check for unexpected generated code changes
run: git diff --exit-code
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
vendor
composer.lock
phpunit.xml
.phpunit.result.cache
.phpunit.result.cache
docs/retro.md
docs/plan
9 changes: 9 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Repository knowledge base entrypoint: `index.json`

Rules:
- Read `index.json` first.
- Then read `docs/index/index.json`.
- Then follow `docs/index/navigation.json`.
- Do not broad-scan the repository before consulting index files.
- Use `docs/index/skills-registry.json` to choose relevant skills before loading any full skill content.
- `docs/retro.md` is human-only and must not be used as project knowledge.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
3.0.0

- upgrade php version to 8.3
- upgrade webonyx/graphql-php
- setup phpstan with level 6 and fix all errors and strict types in codebase and code generation templates
- code coverage with phpunit

2.1.1

- fix bug with schema introspection [#6](https://github.com/axtiva/example-integration/issues/6)
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
}
},
"require": {
"php": "^7.4 | ^8.0",
"webonyx/graphql-php": "^15.2",
"nikic/php-parser": "^4.12 | ^5"
"php": "^8.3",
"webonyx/graphql-php": "^15.30",
"nikic/php-parser": "^5"
},
"require-dev": {
"psr/container": "^1 | ^2",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^12",
"phpstan/phpstan": "^2.1"
}
}
1 change: 0 additions & 1 deletion docs/index.md

This file was deleted.

Loading
Loading