Merge pull request #94 from findologic/PLENTY-485-Properties-consider… #533
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: Tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP with Composer 2 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
coverage: xdebug | |
tools: composer:v2 | |
- name: Setup CI environment with env files | |
run: cp .env.example .env && cp .env.test.example .env.test | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Check linting rules | |
run: composer lint | |
- name: Run tests | |
run: composer test | |
- name: Upload code coverage to codecov | |
run: bash <(curl -s https://codecov.io/bash) |