Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebToken support integration #1041

Merged
merged 1 commit into from
Dec 1, 2023
Merged
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
71 changes: 71 additions & 0 deletions .github/workflows/web-token-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: "CI Tests (for Web Token support only)"

on:
pull_request:
push:

jobs:
tests:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.can-fail }}
strategy:
fail-fast: false
matrix:
include:
# LTS with latest stable PHP
- php: 8.1
symfony: 5.4.*
composer-flags: '--prefer-stable'
can-fail: false
# Development Symfony branches
- php: 8.1
symfony: 6.2.*@dev
composer-flags: ''
can-fail: false

name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"
with:
fetch-depth: 2

- name: "Cache Composer packages"
uses: "actions/cache@v2"
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-${{ hashFiles('composer.json') }}-flags-${{ matrix.composer-flags }}"
restore-keys: "php-"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
tools: "composer:v2,flex"

- name: "Set Composer stability"
if: "matrix.symfony == '6.2.*@dev'"
run: "composer config minimum-stability dev"

- name: "Remove symfony/security-guard"
if: "matrix.symfony == '6.0.*' || matrix.symfony == '6.1.*' || matrix.symfony == '6.2.*@dev'"
run: "composer remove --dev --no-update symfony/security-guard"


- name: "Require web-token/*"
run: |
composer require --dev --no-update web-token/jwt-bundle:"^3.0.6"
composer require --dev --no-update web-token/jwt-checker:"^3.0.6"
composer require --dev --no-update web-token/jwt-key-mgmt:"^3.0.6"
composer require --dev --no-update web-token/jwt-signature-algorithm-hmac:"^3.0.6"
composer require --dev --no-update web-token/jwt-encryption-algorithm-aesgcm:"^3.0.6"
composer require --dev --no-update web-token/jwt-encryption-algorithm-aesgcmkw:"^3.0.6"

- name: "Install dependencies"
run: "composer update ${{ matrix.composer-flags }} --prefer-dist"
env:
SYMFONY_REQUIRE: "${{ matrix.symfony }}"

- name: "Run PHPUnit Tests"
run: "vendor/bin/simple-phpunit --group web-token"
Loading
Loading