Skip to content

New Crowdin updates #1800

New Crowdin updates

New Crowdin updates #1800

name: acceptance tests
on:
push:
branches:
- '**'
- '!l10n_*'
pull_request:
branches:
- '**'
- '!l10n_*'
jobs:
acceptance-tests:
runs-on: ubuntu-22.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.1"]
browser: [chrome]
theme: [bootstrap3-banner, bootstrap3-modal, bootstrap4-modal, bootstrap5-modal, customtheme]
steps:
- uses: actions/checkout@v3
# Set PHP version
- run: |
sed -i -e 's/^php_version:.*/php_version: ${{ matrix.php-version }}/g' .ddev/config.yaml
# Start ddev
- uses: ddev/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-22.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.1"]
browser: [firefox]
theme: [bootstrap3-banner, bootstrap3-modal, bootstrap4-modal, bootstrap5-modal, customtheme]
steps:
- uses: actions/checkout@v3
# Set PHP version
- run: |
sed -i -e 's/^php_version:.*/php_version: ${{ matrix.php-version }}/g' .ddev/config.yaml
# Start ddev
- uses: ddev/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@v3
with:
name: ${{ matrix.browser }}-${{ matrix.theme }}-${{ matrix.php-version }}-ar
path: Build/AcceptanceReports
if: always()