Skip to content

Commit

Permalink
Update php versions in pipelines (#74)
Browse files Browse the repository at this point in the history
* Update php versions in pipelines

* cs
  • Loading branch information
Exanlv authored Jan 25, 2024
1 parent 9becea9 commit 24d22de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 31 deletions.
33 changes: 4 additions & 29 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ jobs:
- name: Install PHP 8.1
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.3
- name: Install packages
run: composer install --no-progress
- name: Run CS
run: composer cs
- name: Verify namespaces
run: bash util/verify-namespacing.sh

phpmd:
runs-on: ubuntu-20.04
Expand All @@ -26,35 +28,8 @@ jobs:
- name: Install PHP 8.1
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.3
- name: Install packages
run: composer install --no-progress
- name: Run MD
run: composer md

namespace-check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install PHP 8.1
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- name: Verify namespaces
run: bash util/verify-namespacing.sh

syntax-check:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3' ]
steps:
- uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Verify linting for ${{ matrix.php }}
run: ./util/verify-namespacing.sh
5 changes: 4 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3' ]
php: [ '8.1', '8.2', '8.3', '8.4' ]

steps:
- uses: actions/checkout@v3
Expand All @@ -23,6 +23,9 @@ jobs:
with:
php-version: ${{ matrix.php }}

- name: Verify syntax for ${{ matrix.php }}
run: ./util/verify-namespacing.sh

- name: Install packages
run: composer install --prefer-dist --no-progress

Expand Down
2 changes: 1 addition & 1 deletion src/Rest/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ public function startThreadInForumChannel(
MultipartBody|array $params,
?string $reason = null
): ExtendedPromiseInterface {
$forumChannelWithMessage = new class() extends Channel {
$forumChannelWithMessage = new class () extends Channel {
public Message $message;
};

Expand Down

0 comments on commit 24d22de

Please sign in to comment.