chore(deps-dev): bump vimeo/psalm from 5.9.0 to 5.14.0 #337
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] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
php: ['8.1', '8.2'] | |
dependency-version: [prefer-lowest, prefer-stable] | |
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Puppeteer | |
run: npm install puppeteer | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl | |
coverage: none | |
- name: "Validate composer.json and composer.lock" | |
run: "composer validate --strict" | |
- name: "Determine composer cache directory" | |
id: "determine-composer-cache-directory" | |
run: "echo \"::set-output name=directory::$(composer config cache-dir)\"" | |
- name: "Cache dependencies installed with composer" | |
uses: "actions/cache@v3" | |
with: | |
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}" | |
key: "php-${{ matrix.php }}-composer-${{ matrix.dependency-version }}-${{ hashFiles('composer.lock') }}" | |
restore-keys: "php-${{ matrix.php }}-composer-${{ matrix.dependency-version }}-" | |
- name: Install dependencies | |
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist | |
- name: Run psalm | |
run: composer analyze -- --php-version=${{ matrix.php }} | |
- name: Start server | |
run: (php -S localhost:8000 -t ./tests/Server &) || /bin/true | |
- name: Wait for server bootup | |
run: sleep 3 | |
- name: Execute tests | |
run: vendor/bin/phpunit |