Skip to content

Commit

Permalink
Merge branch 'QA_5_2' into STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
ibennetch committed Feb 7, 2023
2 parents c7831e1 + d5db011 commit 7755c68
Show file tree
Hide file tree
Showing 444 changed files with 75,540 additions and 63,571 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/lint-and-analyse-php.yml
Expand Up @@ -8,6 +8,9 @@ on:
- master
- QA_**

permissions:
contents: read

jobs:
lint-node:
runs-on: ubuntu-latest
Expand All @@ -16,13 +19,13 @@ jobs:
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12

- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache Yarn dependencies
uses: actions/cache@v3
Expand Down Expand Up @@ -59,25 +62,35 @@ jobs:
run: composer validate --strict

- name: Install Composer dependencies
uses: ramsey/composer-install@v1
# Allow the previous check to fail but not abort
if: always()
uses: ramsey/composer-install@v2
with:
dependency-versions: highest
# Ignore zip for php-webdriver/webdriver
composer-options: "--ignore-platform-req=ext-zip"

- name: Cache coding-standard
# Allow the previous check to fail but not abort
if: always()
uses: actions/cache@v3
with:
path: .phpcs-cache
key: phpcs-cache

- name: Lint PHP files
# Allow the previous check to fail but not abort
if: always()
run: ./test/ci-phplint

- name: Check coding-standard
# Allow the previous check to fail but not abort
if: always()
run: composer phpcs

- name: Check Twig templates
# Allow the previous check to fail but not abort
if: always()
run: composer run twig-lint

analyse-php:
Expand All @@ -96,12 +109,14 @@ jobs:
extensions: mbstring, iconv, mysqli, zip, gd, bz2

- name: Install Composer dependencies
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2
with:
dependency-versions: highest

- name: Analyse files with PHPStan
run: composer phpstan -- --memory-limit 2G

- name: Analyse files with Psalm
# Allow the previous check to fail but not abort
if: always()
run: composer psalm -- --shepherd
3 changes: 3 additions & 0 deletions .github/workflows/lint-docs.yml
Expand Up @@ -8,6 +8,9 @@ on:
- master
- QA_**

permissions:
contents: read

jobs:
lint-docs:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lock.yml
Expand Up @@ -4,8 +4,13 @@ on:
schedule:
- cron: '0 0 * * *'

permissions:
contents: read

jobs:
lock:
permissions:
issues: write # for dessant/lock-threads to lock issues
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/mutation-tests.yml
Expand Up @@ -6,13 +6,16 @@ on:
pull_request:
branches: [master]

permissions:
contents: read

jobs:
tests:
name: Mutation tests with PHP ${{ matrix.php-version }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
php-version: ["8.0"]
php-version: ["8.1"]
operating-system: [ubuntu-latest]
steps:
- name: Checkout code
Expand All @@ -36,15 +39,10 @@ jobs:
php-version: ${{ matrix.php-version }}
coverage: pcov
ini-values: memory_limit=-1
tools: composer:v2, phive

- name: Install Infection
# The GPG key can be found at https://infection.github.io/guide/installation.html
run: |
phive --no-progress install --target ./build/tools --trust-gpg-keys C5095986493B4AA0 infection
tools: composer:v2, infection

- name: Install Composer dependencies
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2
with:
dependency-versions: highest

Expand All @@ -56,7 +54,7 @@ jobs:
if: ${{ github.base_ref != '' }}
run: |
CHANGED_FILES=$(git diff origin/$GITHUB_BASE_REF --diff-filter=AM --name-only | grep libraries/classes/ | paste -sd "," -);
./build/tools/infection -j$(nproc) --skip-initial-tests --no-interaction --no-progress --coverage=build/logs \
infection -j$(nproc) --skip-initial-tests --no-interaction --no-progress --coverage=build/logs \
--ignore-msi-with-no-mutations \
--filter=$CHANGED_FILES
env:
Expand All @@ -65,6 +63,6 @@ jobs:
- name: Infection
if: ${{ github.base_ref == '' }}
run: |
./build/tools/infection -j$(nproc) --skip-initial-tests --no-interaction --no-progress --coverage=build/logs
infection -j$(nproc) --skip-initial-tests --no-interaction --no-progress --coverage=build/logs
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
16 changes: 8 additions & 8 deletions .github/workflows/other-tools.yml
Expand Up @@ -8,6 +8,9 @@ on:
- master
- QA_**

permissions:
contents: read

jobs:
build-documentation:
runs-on: ubuntu-latest
Expand All @@ -18,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.6'
python-version: '3.7'

- name: Install Sphinx for the documentation build
run: pip install 'Sphinx'
Expand Down Expand Up @@ -46,18 +49,18 @@ jobs:
tools: composer:v2

- name: Install Composer dependencies
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2
with:
dependency-versions: highest

- name: Set up Node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12

- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache Yarn dependencies
uses: actions/cache@v3
Expand All @@ -67,13 +70,10 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- name: Install modules
run: yarn install --non-interactive

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.6'
python-version: '3.7'

- name: Install Sphinx for the documentation build
run: pip install 'Sphinx'
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/test-selenium.yml
Expand Up @@ -8,6 +8,9 @@ on:
- master
- QA_**

permissions:
contents: read

jobs:
test-selenium:
name: Selenium tests on PHP ${{ matrix.php-version }} and ${{ matrix.os }}
Expand All @@ -27,7 +30,7 @@ jobs:
--health-retries=3
selenium-server:
image: selenium/standalone-chrome:3.141.59
image: selenium/standalone-chrome:4
volumes:
- /dev/shm:/dev/shm
options: >-
Expand Down Expand Up @@ -74,18 +77,18 @@ jobs:
extensions: mbstring, iconv, mysqli, zip, gd, bz2

- name: Install Composer dependencies
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2
with:
dependency-versions: highest

- name: Set up Node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12

- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache Yarn dependencies
uses: actions/cache@v3
Expand All @@ -108,7 +111,7 @@ jobs:
SKIP_STANDALONE: 1
run: |
./test/start-local-server
echo ::set-output name=SELENIUM_TEMPDIR::"$(cat /tmp/last_temp_dir_phpMyAdminTests)"
echo "SELENIUM_TEMPDIR=$(cat /tmp/last_temp_dir_phpMyAdminTests)" >> $GITHUB_OUTPUT
id: start-local-server

- name: Run Selenium tests
Expand All @@ -135,8 +138,8 @@ jobs:
./test/stop-local-server
- name: Upload screenshots
uses: actions/upload-artifact@v2
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: selenium-screenshots
path: ${{ github.workspace }}/build/selenium/**/*
Expand Down

0 comments on commit 7755c68

Please sign in to comment.