-
Notifications
You must be signed in to change notification settings - Fork 10
33 lines (33 loc) · 1.39 KB
/
run-checks-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
on: [push]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
name: "Checks and tests"
jobs:
checks-and-tests:
name: Run checks and tests in PHP ${{ matrix.php-versions }} ${{ matrix.composer-prefered-dependencies }}
runs-on: ubuntu-22.04
strategy:
matrix:
php-versions: ['8.1']
composer-preferred-dependencies: ['--prefer-lowest', '']
fail-fast: false
steps:
- name: GIT checkout branch - ${{ github.ref }}
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Install PHP, extensions and tools
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: bcmath, gd, intl, pdo_pgsql, redis, pgsql, zip
tools: composer
- name: Install Composer dependencies
run: composer update --optimize-autoloader --no-interaction ${{ matrix.composer-preferred-dependencies }}
- name: Run parallel-lint
run: php vendor/bin/parallel-lint ./src ./tests
- name: Run Easy Coding Standards
run: php vendor/bin/ecs check --verbose ./src ./tests
- name: Run PHPUnit
run: php vendor/bin/phpunit tests