-
Notifications
You must be signed in to change notification settings - Fork 19
117 lines (93 loc) · 3.79 KB
/
test-application.yaml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Test application
on:
pull_request:
push:
branches:
- 'master'
jobs:
test:
name: 'PHP ${{ matrix.php-version }}, Behat Suite ${{ matrix.behat-suite }}, Dependencies ${{ matrix.dependencies }}'
runs-on: ubuntu-latest
env:
SYMFONY_DEPRECATIONS_HELPER: ${{ matrix.symfony-deprecation-helper }}
BEHAT_SUITE: ${{ matrix.behat-suite }}
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix:
include:
- php-version: '8.0'
dependencies: lowest
behat-suite: standalone
- php-version: '8.0'
dependencies: lowest
behat-suite: embedded
- php-version: '8.0'
dependencies: lowest
behat-suite: cli
- php-version: '8.1'
dependencies: highest
behat-suite: standalone
- php-version: '8.1'
dependencies: highest
behat-suite: embedded
- php-version: '8.1'
dependencies: highest
behat-suite: cli
- php-version: '8.2'
dependencies: highest
behat-suite: standalone
- php-version: '8.2'
dependencies: highest
behat-suite: embedded
- php-version: '8.2'
dependencies: highest
behat-suite: cli
- php-version: '8.3'
dependencies: highest
behat-suite: standalone
composer-stability: 'dev'
- php-version: '8.3'
dependencies: highest
behat-suite: embedded
composer-stability: 'dev'
- php-version: '8.3'
dependencies: highest
behat-suite: cli
composer-stability: 'dev'
steps:
- name: Checkout project
uses: actions/checkout@v4
# default java installation not able to run jackrabbit. use same as jackalope-jackrabbit action
- name: Install and configure Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '8'
- name: Install and configure PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: 'composer:v2'
- name: Set composer stability
if: ${{ matrix.composer-stability }}
run: composer config minimum-stability ${{ matrix.composer-stability }}
- name: Install dependencies with Composer
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: ${{ matrix.composer-options }}
- name: Cache Jackrabbit
id: cache-jackrabbit
uses: actions/cache@v4
with:
path: vendor/jackalope/jackalope-jackrabbit/bin/jackrabbit-standalone-*
key: jackrabbit
- name: Start Jackrabbit
run: |
JACKRABBIT_VERSION=2.21.10 tests/bin/travis_jackrabbit.sh
- name: Execute test cases
run: |
vendor/bin/phpunit
vendor/bin/phpspec run
vendor/bin/behat -vv --suite=${{ matrix.behat-suite }}