-
Notifications
You must be signed in to change notification settings - Fork 19
72 lines (69 loc) · 2.28 KB
/
acceptance-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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: [ "8.1", "8.2", "8.3" ]
browser: [ chrome ]
theme: [ bootstrap3-banner, bootstrap3-modal, bootstrap4-modal, bootstrap5-modal, customtheme ]
steps:
- uses: actions/checkout@v4
# 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.3" ]
browser: [ firefox ]
theme: [ bootstrap3-banner, bootstrap3-modal, bootstrap4-modal, bootstrap5-modal, customtheme ]
steps:
- uses: actions/checkout@v4
# 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()