mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-11 10:36:54 +01:00
* fix "single_trait_insert_per_statement" * fix "empty_loop_condition" * fix "backtick_to_shell_exec" * fix "phpdoc_to_comment" * fix "no_empty_statement" * fix "heredoc_to_nowdoc" * fix "class_reference_name_casing" * fix "align_multiline_comment" * fix "heredoc_indentation" * fix "constant_case" * fix "single_line_comment_style" * fix "no_null_property_initialization" * fix "standardize_increment" * fix "no_unneeded_control_parentheses" * fix missing NL after "<?php" * fix php in *.sh files too * fix trailing spaces from all text files * fix "explicit_indirect_variable" * Revert "fix "align_multiline_comment"" This reverts commit42e584f8e3. * fix "align_multiline_comment" properly * Revert "fix trailing spaces from all text files" - diff files only * Revert "Revert "fix trailing spaces from all text files" - diff files only" This reverts commit2101c2a3a3. * rm useless "setup-php" config
109 lines
3.4 KiB
YAML
109 lines
3.4 KiB
YAML
name: Unit
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
tests_linux:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php: ["7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
|
|
|
|
name: Linux / PHP ${{ matrix.php }}
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
extensions: dom, curl, fileinfo, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, ldap, intl, pspell, enchant
|
|
tools: composer:v2
|
|
coverage: none
|
|
|
|
- name: Setup problem matchers
|
|
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
|
|
|
|
- name: Install Aspell/Hunspell
|
|
run: sudo apt-get -y install aspell aspell-en aspell-de hunspell-en-us
|
|
|
|
- name: Setup composer
|
|
run: |
|
|
cp composer.json-dist composer.json
|
|
composer require "kolab/net_ldap3:~1.1.4" --no-update
|
|
|
|
- name: Install dependencies
|
|
run: composer update --prefer-dist --no-interaction --no-progress
|
|
|
|
- name: Roundcube configuration
|
|
run: cp .github/config-test.inc.php config/config-test.inc.php
|
|
|
|
- name: Execute tests (highest)
|
|
run: vendor/bin/phpunit -c tests/phpunit.xml --fail-on-warning --fail-on-risky
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@master
|
|
if: failure()
|
|
with:
|
|
name: Logs
|
|
path: logs/errors.log
|
|
|
|
- name: Downgrade dependencies
|
|
run: composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress --optimize-autoloader
|
|
|
|
- name: Execute tests (lowest)
|
|
run: vendor/bin/phpunit -c tests/phpunit.xml --fail-on-warning --fail-on-risky
|
|
|
|
tests_windows:
|
|
runs-on: windows-latest
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php: ["7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
|
|
|
|
name: Windows / PHP ${{ matrix.php }}
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
extensions: dom, curl, fileinfo, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, ldap, intl
|
|
tools: composer:v2
|
|
coverage: none
|
|
|
|
- name: Setup composer
|
|
run: |
|
|
cp composer.json-dist composer.json
|
|
composer require "kolab/net_ldap3:~1.1.4" --no-update
|
|
|
|
- name: Install dependencies
|
|
run: composer update --prefer-dist --no-interaction --no-progress
|
|
|
|
- name: Roundcube configuration
|
|
run: cp .github/config-test.inc.php config/config-test.inc.php
|
|
|
|
- name: Execute tests (highest)
|
|
run: vendor/bin/phpunit -c tests/phpunit.xml --fail-on-warning --fail-on-risky
|
|
|
|
- name: Downgrade dependencies
|
|
run: composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress --optimize-autoloader
|
|
|
|
- name: Execute tests (lowest)
|
|
run: vendor/bin/phpunit -c tests/phpunit.xml --fail-on-warning --fail-on-risky
|