1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 02:27:59 +01:00
psalm/.github/workflows/shepherd.yml
Bruce Weirdan ec4f8ebaa3
Refuse to use PHP versions we did not request
There were a number of test failures caused by setup-php failing to
install the required PHP version. While we certainly should fix our
failing tests, we also need to be sure which PHP version we're using.

This PR does exactly that.
2023-03-12 01:45:23 -04:00

30 lines
607 B
YAML

name: Run Shepherd
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
ini-values: zend.assertions=1
tools: composer:v2
coverage: none
env:
fail-fast: true
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
env:
COMPOSER_ROOT_VERSION: dev-master
- name: Run Psalm
run: ./psalm --threads=2 --output-format=github --shepherd