add support of OAUTHBEARER #9
Workflow file for this run
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: tests | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
linux_tests: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')" | |
strategy: | |
fail-fast: true | |
matrix: | |
php: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2"] | |
name: PHP ${{ matrix.php }}/Linux | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: | |
tools: composer:v2 | |
coverage: none | |
- name: Setup tests for PHP < 7.4 | |
if: matrix.php < 7.4 | |
run: | | |
composer require --dev 'phpunit/phpunit:^4.8.36 || ^5.7.21 || ^6 || ^7' --no-update | |
sed -i 's/: void//g' tests/*.php | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-interaction --no-progress | |
- name: Execute tests | |
run: vendor/bin/phpunit tests/*Test.php |