diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 8b28a6b..2f0d3dd 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -9,9 +9,17 @@ on: jobs: unit-tests: runs-on: ubuntu-latest + strategy: + matrix: + php-version: [8.1, 8.2] steps: - name: Checkout code uses: actions/checkout@v2 + - name: Setup PHP version + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + coverage: none - name: Install dependencies run: composer install - name: Run unit tests diff --git a/composer.json b/composer.json index 5c6356b..a018457 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } }, "require": { - "php": "^8.1" + "php": "^8.1 || ^8.2" }, "require-dev": { "ext-mbstring": "*",