minor #1235 Update 10-web-token.rst (cosminsandu) #190
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: "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: | |
# Lowest deps | |
- php: 8.1 | |
symfony: 5.4.* | |
can-fail: false | |
# LTS with latest stable PHP | |
- php: 8.3 | |
symfony: 6.4.* | |
can-fail: false | |
# Stable Symfony branches | |
- php: 8.1 | |
symfony: 6.3.* | |
can-fail: false | |
- php: 8.2 | |
symfony: 6.4.* | |
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@v4" | |
with: | |
fetch-depth: 2 | |
- name: "Cache Composer packages" | |
uses: "actions/cache@v3" | |
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: "Remove symfony/security-guard" | |
if: "matrix.symfony == '6.3.*' || matrix.symfony == '6.4.*' || matrix.symfony == '7.0.*'" | |
run: "composer remove --dev --no-update symfony/security-guard" | |
- name: "Require web-token/*" | |
run: | | |
composer require --dev --no-update web-token/jwt-bundle:"^3.3" | |
composer require --dev --no-update spomky-labs/aes-key-wrap:"^7.0" | |
- name: "Install dependencies" | |
run: "composer update ${{ matrix.composer-flags }} --prefer-dist --prefer-stable" | |
env: | |
SYMFONY_REQUIRE: "${{ matrix.symfony }}" | |
- name: "Run PHPUnit Tests" | |
run: "vendor/bin/simple-phpunit --group web-token" |