Skip to content

Release 6.4.2

Release 6.4.2 #228

Workflow file for this run

name: Build
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v5
with:
java-version: 11
distribution: 'temurin'
cache: maven
- name: Build
run: mvn clean verify -DskipTests=true
test:
name: Test
needs: build
runs-on: ubuntu-latest
timeout-minutes: 90
services:
mongo:
image: mongo:6
ports:
- 27017:27017
redis:
image: redis
ports:
- 6379:6379
elasticsearch:
image: elasticsearch:7.17.28
ports:
- 9200:9200
- 9300:9300
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
minio:
image: docker.io/bitnamilegacy/minio:2025.7.23
ports:
- 9000:9000
- 9001:9001
options: >-
-e="MINIO_ROOT_USER=root"
-e="MINIO_ROOT_PASSWORD=password"
-e="MINIO_DEFAULT_BUCKETS=default"
steps:
- name: Test Elasticsearch health
env:
ELASTIC_SEARCH_URL: http://localhost:${{ job.services.elasticsearch.ports[9200] }}
run: |
echo "Elasticsearch URL: $ELASTIC_SEARCH_URL"
curl -fsSL "$ELASTIC_SEARCH_URL/_cat/health?h=status"
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v5
with:
java-version: 11
distribution: 'temurin'
cache: maven
# - name: Cache SonarCloud packages
# uses: actions/cache@v3
# with:
# path: ~/.sonar/cache
# key: ${{ runner.os }}-sonar
# restore-keys: ${{ runner.os }}-sonar
- name: Generate certificates
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 ../../../..
- name: Build
run: mvn clean package install -DskipTests=true
#
# - name: Build, test, and analyze
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=netgrif_application-engine
- name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn -B verify
docs:
name: Generate docs
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.PUSH_DOCS }}
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v5
with:
java-version: 11
distribution: 'temurin'
cache: maven
- name: Build
run: mvn clean package install -DskipTests=true
- name: Generate Docs
run: |
mvn javadoc:javadoc
cp -r ./target/apidocs/* ./docs/javadoc/
- name: Commit docs if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add docs
git diff --staged --quiet || git commit -m "CI - Update documentation"
git push