update the larastan pkg #22
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: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install libvips | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends libvips42 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
extensions: ffi | |
tools: cs2pr | |
coverage: none | |
- name: Get composer cache directory | |
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.COMPOSER_CACHE_DIR }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install composer dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Running Pint | |
run: vendor/bin/pint --test | |
- name: Running PHPStan | |
run: vendor/bin/phpstan analyse --error-format=github | |
- name: Running PHPUnit | |
run: vendor/bin/phpunit |