Skip to content

Commit 26382fe

Browse files
committed
feat: split tests job into multiple steps
1 parent 1831a6a commit 26382fe

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

.github/workflows/tests.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,23 @@ jobs:
1313
container:
1414
image: codeccoop/wp-test
1515
steps:
16-
- name: Install WP Test Suite
17-
run: |
18-
nohup docker-entrypoint.sh mariadb 2>&1 >/dev/null &
19-
composer -q install
20-
sleep 10
21-
chmod a+x bin/*
22-
bin/install-wp-tests.sh
23-
bin/download-test-deps.sh
16+
- name: Start MariaDB
17+
run: nohup docker-entrypoint.sh mariadb 2>&1 >/dev/null &
18+
19+
- name: Composer install
20+
run: composer -q install
21+
22+
- name: Wait for MariaDB
23+
run: sleep 5
24+
25+
- name: Executable mode
26+
run: chmod a+x bin/*
27+
28+
- name: Install tests suite
29+
run: bin/install-wp-tests.sh
30+
31+
- name: Download deps
32+
run: bin/download-test-deps.sh
33+
2434
- name: Unit testing
2535
run: vendor/bin/phpunit -c phpunit.xml.dist

0 commit comments

Comments
 (0)