Skip to content

Fix syntax

Fix syntax #721

Workflow file for this run

name: QIT CLI Code tests
on:
workflow_call:
push:
paths:
- 'src/**.php'
concurrency:
group: code-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/code-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/code-tests.yml

Invalid workflow file

invalid value workflow reference: cannot specify version when calling local workflows
with:
php-version: "8.3"
code_tests:
runs-on: ubuntu-20.04
needs: restore_docker_cache
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/cache@v3
id: cache-composer
with:
path: src/vendor
key: ${{ runner.os }}-${{ hashFiles('src/composer.lock') }}
- name: Composer install
if: steps.cache-composer.outputs.cache-hit != 'true'
working-directory: src
run: composer install
- name: Run PHPCS
run: make phpcs
- name: Run PHPStan
run: make phpstan
- name: Run Phan
run: make phan