Skip to content

Upgrade firebase/php-jwt to v7, modernize CI#188

Merged
kidunot89 merged 2 commits intowp-graphql:developfrom
kidunot89:chore/php-jwt-upgrade
Mar 13, 2026
Merged

Upgrade firebase/php-jwt to v7, modernize CI#188
kidunot89 merged 2 commits intowp-graphql:developfrom
kidunot89:chore/php-jwt-upgrade

Conversation

@kidunot89
Copy link
Copy Markdown
Collaborator

@kidunot89 kidunot89 commented Mar 13, 2026

Summary

  • Upgrades firebase/php-jwt from v6 to v7 with Strauss vendor prefixing
  • Replaces Travis CI with GitHub Actions for test and release workflows
  • Adds Docker-based test infrastructure for both wpunit and functional tests
  • Fixes all functional tests for current WPGraphQL behavior
  • Updates wpunit tests for php-jwt v7 Key object API
  • Removes vendor/ from git tree — dependencies installed at build time
  • Configures composer archive for clean release packaging

Motivation

php-jwt v6 has been blacklisted for security vulnerabilities. v7 requires HS256 keys to be at least 32 bytes and uses Key objects instead of raw strings for JWT::decode().

Test plan

  • FILTER=wpunit docker compose up --build --abort-on-container-exit --exit-code-from wordpress
  • FILTER=functional docker compose up --build --abort-on-container-exit --exit-code-from wordpress
  • Verify GitHub Actions CI passes on PR
  • Test release packaging with composer install --no-dev && composer archive --format=zip

…ucture

- Upgrade firebase/php-jwt from v6 to v7 with Strauss vendor prefixing
- Replace Travis CI with GitHub Actions (tests.yml + package-for-release.yml)
- Add Docker-based test infrastructure (Dockerfile, entrypoint.sh, docker-compose.yml)
- Fix all functional tests for current WPGraphQL behavior (Content-Type headers, 200 vs 403 responses)
- Update wpunit tests for php-jwt v7 Key object API
- Remove vendor/ from git tree, rely on composer install in CI
- Configure composer archive for clean release packaging
@kidunot89 kidunot89 merged commit 5cc1d74 into wp-graphql:develop Mar 13, 2026
1 check passed
@kidunot89 kidunot89 deleted the chore/php-jwt-upgrade branch March 13, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant