Skip to content

Use major action versions (#73) #154

Use major action versions (#73)

Use major action versions (#73) #154

Workflow file for this run

name: tests
on:
pull_request: ~
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
tests:
runs-on: ubuntu-latest
name: tests
strategy:
matrix:
install-args: ['', '--prefer-lowest']
php-version: ['8.1', '8.2', '8.3']
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v4
- name: php
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
tools: composer:v2
- name: composer
uses: ramsey/[email protected]
with:
composer-options: "--prefer-dist ${{ matrix.install-args }}"
- name: phpunit
run: |
vendor/bin/phpunit
- name: phpstan-cache
uses: actions/cache@v4
with:
key: phpstan-${{ github.ref }}-${{ github.sha }}
path: .phpstan-cache
restore-keys: |
phpstan-${{ github.ref }}-
phpstan-
- name: phpstan
run: |
mkdir -p .phpstan-cache
vendor/bin/phpstan analyse --no-progress --no-interaction