Skip to content

Fix syntax

Fix syntax #7

Workflow file for this run

name: Phan Tests
on:
pull_request:
paths:
- 'src/**.php'
workflow_dispatch:
concurrency:
group: phan-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
restore_docker_cache:
uses: ./.github/workflows/restore-docker-cache.yml@main

Check failure on line 14 in .github/workflows/phan.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/phan.yml

Invalid workflow file

invalid value workflow reference: cannot specify version when calling local workflows
with:
php-version: ${{ matrix.php }}
phan_tests:
runs-on: ubuntu-latest
needs: restore_docker_cache
strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache composer dependencies
uses: actions/cache@v3
id: cache-composer
with:
path: src/vendor
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('src/composer.lock') }}
- name: Composer install
if: steps.cache-composer.outputs.cache-hit != 'true'
run: |
cd src
composer install --no-interaction --no-suggest --prefer-dist
- name: Run Phan
env:
PHP_VERSION: ${{ matrix.php }}
run: make phan