-
-
Notifications
You must be signed in to change notification settings - Fork 156
34 lines (27 loc) · 1.05 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
name: Isolated tests
on:
workflow_dispatch: ~
schedule:
- cron: 0 13 * * MON,THU
permissions: read-all
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@v3
- name: Install the dependencies
run: |
composer install --no-interaction --no-progress
composer bin isolated-tests install --no-interaction --no-progress
- 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