diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e24a0fd0..a3287894 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,10 +19,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: shivammathur/setup-php@v2 with: coverage: none php-version: '8.2' + - run: composer validate --strict --no-check-lock static_analysis: @@ -30,12 +32,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: shivammathur/setup-php@v2 with: coverage: none php-version: '8.2' + - name: Install dependencies - run: composer update --ansi --no-progress --prefer-dist --no-interaction + run: | + composer update --ansi --no-progress --prefer-dist --no-interaction + composer require lullabot/php-webdriver:dev-justafish/func-signatures + - run: vendor/bin/phpstan analyze tests: @@ -44,7 +51,7 @@ jobs: strategy: matrix: php: [ '8.1', '8.2', '8.3' ] - selenium: ['latest'] + selenium: ['2.53.1', 'latest'] fail-fast: false steps: @@ -65,6 +72,7 @@ jobs: - name: Install dependencies run: | composer update --no-interaction --prefer-dist + composer require lullabot/php-webdriver:dev-justafish/func-signatures - name: Setup Mink test server run: | @@ -81,7 +89,12 @@ jobs: while ! nc -z localhost 8002 getWebDriverSession()->window($name ?: 'current'); - \assert($window instanceof Window); + \assert($window instanceof LegacyWindow); $window->postSize( array('width' => $width, 'height' => $height) );