diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42128e5..fd0870a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,11 +5,24 @@ on: [push] jobs: build-test: runs-on: ubuntu-latest - + + strategy: + matrix: + php-versions: ['7.4', '8.0'] + name: PHP ${{ matrix.php-versions }} Test + steps: - - uses: actions/checkout@v2 - - uses: php-actions/composer@v1 - - name: PHPUnit Tests - uses: php-actions/phpunit@v9 + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 with: - configuration: ./phpunit.xml \ No newline at end of file + php-version: ${{ matrix.php-versions }} + tools: composer:v2, phpunit:v9 + + - name: Install Dependencies + run: composer install + + - name: PHPUnit Tests + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 24b019e..9a0438f 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": "^7.3", + "php": "^7.3 || ^8.0 ", "ext-json": "*", "ext-curl": "*", "psr/http-message": "^1.0", diff --git a/phpunit.xml b/phpunit.xml index 3c93a68..3d309a9 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -2,7 +2,7 @@ - tests + tests tests/FronteggApiTest.php