Skip to content

Commit

Permalink
minor #1178 [GHA] Infra & build updates (chalasr)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

[GHA] Infra & build updates

Commits
-------

477d94f [GHA] Infra & build updates
  • Loading branch information
chalasr committed Dec 5, 2023
2 parents 956f1c4 + 477d94f commit d4434ba
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 39 deletions.
35 changes: 9 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,42 +18,29 @@ jobs:
composer-flags: '--prefer-stable --prefer-lowest'
can-fail: false
# LTS with latest stable PHP
- php: 8.2
symfony: 5.4.*
- php: 8.3
symfony: 6.4.*
composer-flags: '--prefer-stable'
can-fail: false
# Stable Symfony branches
- php: 8.2
symfony: 6.0.*
symfony: 6.3.*
composer-flags: '--prefer-stable'
can-fail: false
- php: 8.2
symfony: 6.1.*
symfony: 6.4.*
composer-flags: '--prefer-stable'
can-fail: false
- php: 8.2
symfony: 6.2.*
- php: 8.3
symfony: 7.0.*
composer-flags: '--prefer-stable'
can-fail: false
- php: 8.2
symfony: 6.3.*
composer-flags: '--prefer-stable'
can-fail: false
# Development Symfony branches
- php: 8.2
symfony: 6.4.*@dev
composer-flags: ''
can-fail: false
- php: 8.2
symfony: 7.0.*@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@v3"
uses: "actions/checkout@v4"
with:
fetch-depth: 2

Expand All @@ -70,16 +57,12 @@ jobs:
php-version: "${{ matrix.php }}"
tools: "composer:v2,flex"

- name: "Set Composer stability"
if: "matrix.symfony == '6.4.*@dev' || matrix.symfony == '7.0.*@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.*' || matrix.symfony == '6.3.*' || matrix.symfony == '6.4.*@dev' || matrix.symfony == '7.0.*@dev'"
if: "matrix.symfony == '6.3.*' || matrix.symfony == '6.4.*' || matrix.symfony == '7.0.*'"
run: "composer remove --dev --no-update symfony/security-guard"

- name: "Install api-platform/core"
if: "matrix.symfony == '6.1.*' || matrix.symfony == '6.2.*' || matrix.symfony == '6.3.*' || matrix.symfony == '6.4.*@dev'"
if: "matrix.symfony == '6.3.*' || matrix.symfony == '6.4.*' || matrix.symfony == '7.0.*'"
run: "composer require --dev --no-update api-platform/core:^3.0"

- name: "Install dependencies"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1']
php-versions: ['8.3']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/web-token-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ jobs:
fail-fast: false
matrix:
include:
# LTS with latest stable PHP
# Lowest deps
- php: 8.1
symfony: 5.4.*
composer-flags: '--prefer-stable'
can-fail: false
# Development Symfony branches
# LTS with latest stable PHP
- php: 8.3
symfony: 6.4.*
can-fail: false
# Stable Symfony branches
- php: 8.1
symfony: 6.2.*@dev
composer-flags: ''
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) || '' }}"
Expand All @@ -44,12 +49,8 @@ jobs:
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'"
if: "matrix.symfony == '6.3.*' || matrix.symfony == '6.4.*' || matrix.symfony == '7.0.*'"
run: "composer remove --dev --no-update symfony/security-guard"


Expand All @@ -63,7 +64,7 @@ jobs:
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"
run: "composer update ${{ matrix.composer-flags }} --prefer-dist --prefer-stable"
env:
SYMFONY_REQUIRE: "${{ matrix.symfony }}"

Expand Down

0 comments on commit d4434ba

Please sign in to comment.