Skip to content

Commit 2cc87e1

Browse files
committed
Automated conversion of Travis CI configuration to a GitHub Actions workflow
1 parent f3547e5 commit 2cc87e1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/actions.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)