forked from contao/contao
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.29 KB
/
isolated-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
name: Isolated tests
on:
workflow_dispatch: ~
schedule:
- cron: 0 13 * * MON,THU
permissions: read-all
defaults:
run:
# Simulate an interactive terminal with color support
shell: script -q -e -c "export TERM=xterm; bash {0}"
jobs:
tests:
name: Isolated tests
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3 # latest stable version
extensions: dom, fileinfo, filter, gd, hash, intl, json, mbstring, mysqli, pcre, pdo_mysql, zlib
coverage: none
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false
- name: Install Contao
uses: ramsey/composer-install@v3
- name: Install the isolated tests
uses: ramsey/composer-install@v3
with:
working-directory: vendor-bin/isolated-tests
- name: Run the unit tests
run: vendor/bin/phpunit --extensions Contao\\CoreBundle\\Tests\\PhpunitExtension\\GlobalStateWatcher
- name: Run the unit tests isolated
run: vendor-bin/isolated-tests/bin/run-tests-isolated