Merge pull request #9282 from miaulalala/patch-1 #1490
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: E2E | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
browser_tests: | |
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: ["8.1"] | |
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 | |
tools: composer:v2 | |
coverage: none | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '8' | |
- name: Setup problem matchers | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Install Aspell | |
run: sudo apt-get -y install aspell aspell-en aspell-de | |
- name: Setup composer | |
run: | | |
cp composer.json-dist composer.json | |
composer require "laravel/dusk:^7.9" --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: Setup NPM | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
- name: Setup NPM deps | |
run: | | |
npm install --force -g less | |
npm install --force -g less-plugin-clean-css | |
npm install --force -g uglify-js | |
- name: Execute tests | |
run: .github/run.sh |