Merge pull request #184 from cyklokoalicia/bug_fix2 #66
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: Build | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
phpcs: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [5.6, 7.0, 7.1] | |
fail-fast: false | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Install dependencies | |
run: composer install | |
- name: Run PHP Unit Tests | |
run: vendor/bin/phpunit --configuration phpunit.xml.dist | |
- name: Run PHP CodeSniffer | |
run: vendor/bin/phpcs ./src ./tests |