Skip to content

Commit f433182

Browse files
authored
Merge pull request #1 from meilisearch/tests-script
Add script for tests to increase FDs limit
2 parents afc9639 + 474b842 commit f433182

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: docker run -d -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --master-key=masterKey --no-analytics=true
2525

2626
- name: Run test suite
27-
run: vendor/bin/phpunit --color tests/
27+
run: sh scripts/tests.sh
2828

2929
- name: Run linter
3030
run: vendor/bin/php-cs-fixer fix -v --config=.php_cs.dist --using-cache=no --dry-run

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Each PR should pass the tests and the linter to be accepted.
270270
```bash
271271
# Tests
272272
$ docker run -d -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --master-key=masterKey --no-analytics=true
273-
$ vendor/bin/phpunit --color tests/
273+
$ sh scripts/tests.sh
274274
# Linter (with auto-fix)
275275
$ vendor/bin/php-cs-fixer fix --verbose --config=.php_cs.dist
276276
# Linter (without auto-fix)

scripts/tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
echo 'Setting FDs limit to 1000'
4+
ulimit -n 1000
5+
6+
echo "Launching tests..."
7+
vendor/bin/phpunit --color tests/

0 commit comments

Comments
 (0)