Skip to content

Commit 0fb1da6

Browse files
committed
Merge branch 'QA'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2 parents 3ad940e + 688e643 commit 0fb1da6

File tree

5 files changed

+118
-67
lines changed

5 files changed

+118
-67
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Lint and analyse php files
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
branches:
8+
- master
9+
- QA
10+
11+
jobs:
12+
lint-php:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Use php 7.1
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: 7.1
20+
tools: composer:v2
21+
- name: Validate composer.json and composer.lock
22+
run: composer validate
23+
- name: Cache module
24+
uses: actions/cache@v2
25+
with:
26+
path: ~/.composer/cache/
27+
key: composer-cache
28+
- name: Install dependencies
29+
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
30+
- name: Lint files
31+
run: ./vendor/bin/phpcs
32+
33+
analyse-php:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: Use php 7.1
38+
uses: shivammathur/setup-php@v2
39+
with:
40+
php-version: 7.1
41+
tools: composer:v2
42+
- name: Cache module
43+
uses: actions/cache@v2
44+
with:
45+
path: ~/.composer/cache/
46+
key: composer-cache
47+
- name: Install dependencies
48+
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
49+
- name: Analyse files
50+
run: ./vendor/bin/phpstan analyse

.github/workflows/lint-docs.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: lint php documentation
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
branches:
8+
- master
9+
- QA
10+
11+
jobs:
12+
lint-docs:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: lint php documentation
17+
uses: sudo-bot/action-doctum@v5
18+
with:
19+
config-file: tools/doctum-config.php
20+
method: "parse"
21+
cli-args: "--output-format=github --no-ansi --no-progress -v --ignore-parse-errors"

.github/workflows/tests.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
branches:
8+
- master
9+
- QA
10+
11+
jobs:
12+
test-php:
13+
name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"]
18+
os: [ubuntu-latest]
19+
steps:
20+
- uses: actions/checkout@v1
21+
- name: Use php ${{ matrix.php-version }}
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php-version }}
25+
extensions: mbstring
26+
coverage: xdebug
27+
- name: Cache module
28+
uses: actions/cache@v2
29+
with:
30+
path: ~/.composer/cache/
31+
key: composer-cache
32+
- name: Install dependencies
33+
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
34+
- name: Install motranslator
35+
if: ${{ matrix.php-version == '7.1' }}
36+
run: composer require phpmyadmin/motranslator:^3.0
37+
- name: Run php tests
38+
run: ./vendor/bin/phpunit
39+
- name: Send coverage
40+
uses: codecov/codecov-action@v1
41+
- name: Send coverage to Scrutinizer
42+
uses: sudo-bot/action-scrutinizer@latest
43+
# Upload can fail on forks
44+
continue-on-error: true
45+
with:
46+
cli-args: "--format=php-clover build/logs/clover.xml"

.travis.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363

6464
# [4.7.2] - YYYY-MM-DD
6565
- Added check for quoted symbol to avoid parser error in case of keyword (#317)
66+
- Adjust PHP version constraint to not support PHP 8.0 on the 4.7 series (5.x series supports it)
6667

6768
## [4.7.1] - 2020-10-15
6869
* Fix array_key_exists warning when parsing a "DEFAULT FALSE" token (#299)

0 commit comments

Comments
 (0)