Skip to content

Commit

Permalink
feat: Support for 8.1 and 8.2 testing (#195)
Browse files Browse the repository at this point in the history
* feat: Support for 8.1 and 8.2 testing

* chore: change actions/cache@v3 to v4

* fix(testing): fix test case warning error

* fix(testing): fix test case warning error

* chore: revert code

* chore: revert code

* chore: change actions/cache@v3 to v4

chore: revert code
  • Loading branch information
summerKK authored Jun 6, 2024
1 parent 3235588 commit 3153ccd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['7.1', '7.2', '7.3', '8.0']
php-versions: ['7.1', '7.2', '7.3', '8.0', '8.1', '8.2']

env:
YOUTUBE_API_KEY: ${{secrets.YOUTUBE_API_KEY}}

name: Testing on PHP ${{ matrix.php-versions }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Expand Down
2 changes: 1 addition & 1 deletion tests/YoutubeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function testGetChannelByHandle()
$this->assertObjectHasAttribute('contentDetails', $response);
$this->assertObjectHasAttribute('statistics', $response);
}

public function testGetChannelByName()
{
$response = $this->youtube->getChannelByName('Google');
Expand Down

0 comments on commit 3153ccd

Please sign in to comment.