-
Notifications
You must be signed in to change notification settings - Fork 52
66 lines (54 loc) · 1.47 KB
/
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
name: Tests
on:
push:
branches: [ 3.x ]
pull_request:
branches: [ 3.x ]
workflow_dispatch:
env:
DCG_TMP_DIR: /dev/shm
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- "8.1"
- "8.2"
- "8.3"
drupal:
- "10.2.x"
- "10.3.x"
dependency-mode:
- prefer-stable
- prefer-lowest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: zend.assertions=1
tools: composer:v2
- name: Install Symfony CLI
run: |
echo 'deb [trusted=yes] https://repo.symfony.com/apt/ /' | sudo tee /etc/apt/sources.list.d/symfony-cli.list
sudo apt update && sudo apt install symfony-cli
- name: Install dependencies
run: composer install --ansi
- name: Update dependencies
run: composer update --${{ matrix.dependency-mode }} --ansi
- name: Run lint
run: ./scripts/lint.sh
- name: Run unit tests
run: ./scripts/unit-tests.sh
- name: Run functional tests
env:
DCG_DRUPAL_VERSION: ${{ matrix.drupal }}
run: ./scripts/functional-tests.sh
- name: Run SUT tests
env:
DCG_DRUPAL_VERSION: ${{ matrix.drupal }}
run: ./scripts/sut-tests.sh