11name : Build
2+
23on :
34 push :
45 branches :
56 - master
7+ paths-ignore :
8+ - ' docs/**'
69
710jobs :
811 build :
@@ -44,21 +47,30 @@ jobs:
4447 ports :
4548 - 9200:9200
4649 - 9300:9300
47- options : -e="discovery.type=single-node" -e="xpack.security.enabled=false" --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10
50+ options : >-
51+ -e="discovery.type=single-node"
52+ -e="xpack.security.enabled=false"
53+ --health-cmd="curl http://localhost:9200/_cluster/health"
54+ --health-interval=10s
55+ --health-timeout=5s
56+ --health-retries=10
4857
4958 minio :
5059 image : docker.io/bitnamilegacy/minio:2025.7.23
5160 ports :
5261 - 9000:9000
5362 - 9001:9001
54- options : -e="MINIO_ROOT_USER=root" -e="MINIO_ROOT_PASSWORD=password" -e="MINIO_DEFAULT_BUCKETS=default"
63+ options : >-
64+ -e="MINIO_ROOT_USER=root"
65+ -e="MINIO_ROOT_PASSWORD=password"
66+ -e="MINIO_DEFAULT_BUCKETS=default"
5567
5668 steps :
57- - name : Test Database
69+ - name : Test Elasticsearch health
5870 env :
5971 ELASTIC_SEARCH_URL : http://localhost:${{ job.services.elasticsearch.ports[9200] }}
6072 run : |
61- echo $ELASTIC_SEARCH_URL
73+ echo "Elasticsearch URL: $ELASTIC_SEARCH_URL"
6274 curl -fsSL "$ELASTIC_SEARCH_URL/_cat/health?h=status"
6375
6476 - uses : actions/checkout@v6
8092# restore-keys: ${{ runner.os }}-sonar
8193
8294 - name : Generate certificates
83- run : cd src/main/resources/certificates && openssl genrsa -out keypair.pem 4096 && openssl rsa -in keypair.pem -pubout -out public.crt && openssl pkcs8 -topk8 -inform PEM -outform DER -nocrypt -in keypair.pem -out private.der && cd ../../../..
95+ run : |
96+ cd src/main/resources/certificates
97+ openssl genrsa -out keypair.pem 4096
98+ openssl rsa -in keypair.pem -pubout -out public.crt
99+ openssl pkcs8 -topk8 -inform PEM -outform DER -nocrypt -in keypair.pem -out private.der
100+ cd ../../../..
84101
85102 - name : Build
86103 run : mvn clean package install -DskipTests=true
91108# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
92109# run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=netgrif_application-engine
93110
94- - name : Build, test
111+ - name : Test
95112 env :
96113 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
97114 run : mvn -B verify
@@ -121,8 +138,10 @@ jobs:
121138 mvn javadoc:javadoc
122139 cp -r ./target/apidocs/* ./docs/javadoc/
123140
124- - uses : EndBug/add-and-commit@v9
125- with :
126- add : docs
127- pathspec_error_handling : exitImmediately
128- message : ' CI - Update documentation'
141+ - name : Commit docs if changed
142+ run : |
143+ git config user.name "github-actions[bot]"
144+ git config user.email "github-actions[bot]@users.noreply.github.com"
145+ git add docs
146+ git diff --staged --quiet || git commit -m "CI - Update documentation"
147+ git push
0 commit comments