diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 318786f..faa674a 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -12,10 +12,24 @@ permissions: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.operating-system }} + + strategy: + matrix: + operating-system: [ubuntu-latest, windows-latest, macOS-latest] + php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] + + name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 + + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + extensions: intl - name: Validate composer.json and composer.lock run: composer validate --strict