-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 1.07 KB
/
test.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
name: Codeception tests
on: [push]
jobs:
build:
name: PHP ${{ matrix.php }}, Mode ${{ matrix.mode }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php: [ '8.0', '8.1', '8.2', '8.3' ]
mode: ['stable', 'lowest']
exclude:
- php: '8.1'
mode: 'lowest'
- php: '8.2'
mode: 'lowest'
- php: '8.3'
mode: 'lowest'
steps:
- uses: actions/checkout@master
- name: Setup PHP
uses: nanasess/setup-php@master
with:
php-version: ${{ matrix.php }}
- name: Install dependencies in stable mode
if: matrix.mode == 'stable'
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi
- name: Install lowest supported dependencies in lowest mode
if: matrix.mode == 'lowest'
run: composer update --prefer-lowest --no-interaction --no-progress --optimize-autoloader --ansi
- name: Run tests
run: php vendor/bin/codecept run