From 9878c42e862cea48410a59d08d6d2f24210da58e Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sun, 28 Mar 2021 20:56:26 -0700 Subject: [PATCH] Add Elasticsearch support to CI --- .github/workflows/ci.yml | 10 ++++++++++ phpunit.xml | 2 ++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7393a76..93fdbc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,16 @@ jobs: with: php-version: '8.0' coverage: xdebug + - name: Configure sysctl limits for Elasticsearch + run: | + sudo swapoff -a + sudo sysctl -w vm.swappiness=1 + sudo sysctl -w fs.file-max=262144 + sudo sysctl -w vm.max_map_count=262144 + - name: Run Elasticsearch + uses: elastic/elastic-github-actions/elasticsearch@master + with: + stack-version: '7.12.0' - uses: actions/checkout@v2 - name: Get composer cache directory id: composer-cache diff --git a/phpunit.xml b/phpunit.xml index 76a606b..0b72582 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -23,8 +23,10 @@ + +