forked from backdrop/backdrop
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 1.82 KB
/
simpletest.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
name: SimpleTest (Functional Tests)
on:
pull_request:
branches: [1.*]
jobs:
simpletest:
name: Simpletest batches
runs-on: ubuntu-22.04
# Skip this job if the PR title contains "[skip tests]".
if: ${{ !contains(github.event.pull_request.title, '[skip tests]') }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
php-versions: ['5.6', '7.4', '8.3']
fraction: ['1', '2', '3']
database-versions: ['mariadb-10.3']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up webserver
uses: ./.github/actions/set-up-webserver
with:
php-version: ${{ matrix.php-versions }}
database-version: ${{ matrix.database-versions }}
- name: Install Backdrop
run: |
cp ./.github/misc/settings.local.php .
core/scripts/install.sh --db-url=mysql://root:[email protected]/backdrop
- name: Run tests
run: |
echo Running fraction ${{ matrix.fraction }} with PHP ${{ matrix.php-versions }}
# Pipe stderr to stdout so that GitHub Actions displays errors inline
# with the rest of the results, otherwise it prints them afterwards.
core/scripts/run-tests.sh --force --cache --verbose --color --directory=core --split=${{ matrix.fraction }}/3 --concurrency 7 2>&1
- name: System status
if: ${{ always() }}
run: |
echo Get load
uptime
echo Get mem usage
free -m
echo Get disk usage
df -h
echo Get running procs by user
pgrep -au runner
- name: Save Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: simpletest-${{ matrix.php-versions }}-${{ matrix.fraction }}
path: files/simpletest/verbose