Basic ignore cache feature with the support for two plugins #16
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: PHP-QA | |
on: [ push ] | |
jobs: | |
lint-php: | |
uses: inpsyde/reusable-workflows/.github/workflows/lint-php.yml@main | |
strategy: | |
matrix: | |
php: ["7.4", "8.0", "8.1", "8.2"] | |
with: | |
PHP_VERSION: ${{ matrix.php }} | |
coding-standards-analysis-php: | |
uses: inpsyde/reusable-workflows/.github/workflows/coding-standards-php.yml@main | |
with: | |
PHPCS_ARGS: '--report=summary' | |
PHP_VERSION: '8.0' | |
static-code-analysis-php: | |
uses: inpsyde/reusable-workflows/.github/workflows/static-analysis-php.yml@main | |
with: | |
PHP_VERSION: '8.0' | |
tests-unit-php: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
strategy: | |
matrix: | |
php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest -a | |
- name: Run unit tests | |
run: composer tests:codecov | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
flags: unittests | |
verbose: true |