Use PHP from host if possible, add some timing info #329
Workflow file for this run
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: QIT CLI Code tests | |
on: | |
workflow_call: | |
push: | |
paths: | |
- 'src/**.php' | |
jobs: | |
code_tests: | |
name: Code tests | |
runs-on: ubuntu-20.04 | |
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 | |
- name: Run PHPUnit | |
run: make phpunit |