Merge pull request #63 from mindbox-cloud/MBM-393 #101
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: Check code style and tests | |
'on': | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_8_0: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: php-actions/composer@v6 | |
with: | |
php_version: 8.0 | |
version: 2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.0 | |
- name: Update packages | |
run: sudo composer update | |
- name: PHP version | |
run: php -v | |
- name: Run phpcs | |
run: vendor/bin/phpcs | |
- name: Run tests | |
uses: php-actions/phpunit@v3 | |
with: | |
version: 9 | |
php_version: 8.0 | |