mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-03 14:54:01 +01:00
67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
name: browser_tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
browser_tests:
|
|
runs-on: ubuntu-18.04
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
|
|
|
|
strategy:
|
|
fail-fast: true
|
|
|
|
name: Browser Tests
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 8.0
|
|
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@v1
|
|
with:
|
|
java-version: 1.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:~6.9.0" --no-update
|
|
|
|
- name: Fix PHPUnit for PHP8
|
|
run: composer config platform.php 7.4
|
|
|
|
- name: Install dependencies
|
|
run: composer install --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@v1
|
|
with:
|
|
node-version: '12.x'
|
|
|
|
- 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
|