task: Reduce time until modal #1817
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: acceptance tests | |
on: | |
push: | |
branches: | |
- '**' | |
- '!l10n_*' | |
pull_request: | |
branches: | |
- '**' | |
- '!l10n_*' | |
jobs: | |
acceptance-tests: | |
runs-on: ubuntu-18.04 | |
env: | |
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | |
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
continue-on-error: false | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ["7.4", "8.0"] | |
browser: [chrome] | |
theme: [bootstrap3-banner, bootstrap3-modal, bootstrap4-modal, bootstrap5-modal, customtheme] | |
steps: | |
- uses: actions/checkout@v2 | |
# Set PHP version | |
- run: | | |
sed -i -e 's/^php_version:.*/php_version: ${{ matrix.php-version }}/g' .ddev/config.yaml | |
# Start ddev | |
- uses: jonaseberle/github-action-setup-ddev@v1 | |
# Setup tests | |
- run: ddev composer cookieman:${{ matrix.theme }} | |
# Run tests | |
- run: ddev composer test:acceptance:${{ matrix.browser }} | |
# Save acceptance reports | |
- uses: actions/upload-artifact@master | |
with: | |
name: ${{ matrix.browser }}-${{ matrix.theme }}-${{ matrix.php-version }}-ar | |
path: Build/AcceptanceReports | |
if: always() | |
acceptance-tests-firefox: | |
runs-on: ubuntu-18.04 | |
env: | |
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | |
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
continue-on-error: true | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ["8.0"] | |
browser: [firefox] | |
theme: [bootstrap3-banner, bootstrap3-modal, bootstrap4-modal, bootstrap5-modal, customtheme] | |
steps: | |
- uses: actions/checkout@v2 | |
# Set PHP version | |
- run: | | |
sed -i -e 's/^php_version:.*/php_version: ${{ matrix.php-version }}/g' .ddev/config.yaml | |
# Start ddev | |
- uses: jonaseberle/github-action-setup-ddev@v1 | |
# Setup tests | |
- run: ddev composer cookieman:${{ matrix.theme }} | |
# Run tests | |
- run: ddev composer test:acceptance:${{ matrix.browser }} | |
# Save acceptance reports | |
- uses: actions/upload-artifact@master | |
with: | |
name: ${{ matrix.browser }}-${{ matrix.theme }}-${{ matrix.php-version }}-ar | |
path: Build/AcceptanceReports | |
if: always() |