Fix command constructor #89
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: 'Install dependencies and test' | |
on: | |
push: | |
paths: | |
- "src/**" | |
- ".github/workflows/**" | |
branches: | |
- main | |
pull_request: | |
paths: | |
- "src/**" | |
- ".github/workflows/**" | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- draft | |
- ready_for_review | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout code' | |
uses: actions/checkout@v3 | |
- name: 'Cache composer results' | |
id: cache-composer | |
uses: actions/cache@v3 | |
with: | |
path: ./composer.lock | |
key: ${{ github.sha }}-composer | |
- name: 'Composer install' | |
if: steps.cache-composer.outputs.cache-hit != 'true' | |
run: docker run --rm -v $(pwd):/app composer install | |
- name: 'PHPUnit tests' | |
run: docker run --rm -v $(pwd):/app -w /app php:8.2-cli vendor/bin/phpunit |