File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ timeout-minutes : 30
9+
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - name : Set up JDK 21
14+ uses : actions/setup-java@v4
15+ with :
16+ distribution : temurin
17+ java-version : ' 21'
18+ cache : ' maven'
19+
20+ - name : Install Elasticsearch
21+ env :
22+ ES_VERSION : 8.19.11
23+ run : |
24+ sudo rm -rf /var/lib/elasticsearch
25+ curl -fsSL --retry 3 --retry-delay 5 "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}-amd64.deb" -o elasticsearch.deb
26+ ls -lh elasticsearch.deb
27+ sudo dpkg -i --force-confnew elasticsearch.deb
28+ sudo cp ./src/test/resources/elasticsearch.yml /etc/elasticsearch/elasticsearch.yml
29+ sudo cat /etc/elasticsearch/elasticsearch.yml
30+ sudo java -version
31+ sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
32+ sudo systemctl start elasticsearch
33+ sudo systemctl status elasticsearch
34+ sleep 30
35+
36+ - name : Install dependencies
37+ run : mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true
38+
39+ - name : Run tests
40+ run : |
41+ ulimit -a
42+ mvn test
You can’t perform that action at this time.
0 commit comments