diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dc877a51..a059385e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,11 +17,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up JDK 13 - uses: actions/setup-java@v2 + - uses: actions/checkout@v4 + - name: Set up JDK 23 + uses: actions/setup-java@v4 with: - java-version: '13' + java-version: '23' distribution: 'adopt' cache: maven - name: Build with Maven @@ -29,42 +29,20 @@ jobs: test: runs-on: ubuntu-latest - needs: build - - services: - blazegraph: - image: nawer/blazegraph:2.1.5 - ports: - - 9999:9999 - + needs: build steps: - - uses: actions/checkout@v2 - - name: Set up JDK 13 - uses: actions/setup-java@v2 + - uses: actions/checkout@v4 + - name: Set up JDK 23 + uses: actions/setup-java@v4 with: - java-version: '13' + java-version: '23' distribution: 'adopt' cache: maven - - name: wait for blazegraph - uses: nev7n/wait_for_response@v1 - with: - url: 'http://localhost:9999/blazegraph/namespace/kb/sparql' - responseCode: 200 - timeout: 20000 - interval: 500 - name: package engine and launch run: | mvn package cd engine/target - mv endpoints/endpoint-blazegraph.jpar endpoint.jpar - echo launching engine with this configuration - echo SPARQL ENDPOINT - cat endpoint.jpar - echo ENGINE PROPERTIES - cat engine.jpar - echo LOG4J - cat log4j2-debug.xml - java -Dlog4j.configurationFile=./log4j2-debug.xml -jar engine-v0.15.0.jar -engine engine.jpar -endpoint endpoint.jpar > log.txt & + java -Dlog4j.configurationFile=./log4j2-debug.xml -jar engine-1.0.0-SNAPSHOT.jar > log.txt & shell: bash - name: wait for SEPA engine uses: nev7n/wait_for_response@v1 @@ -76,7 +54,7 @@ jobs: - name: verify run: mvn verify -e -Dlog4j2.level=trace - name: publish Engine log - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: always() with: name: engine-log @@ -92,10 +70,10 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: - java-version: '13' + java-version: '23' distribution: 'adopt' cache: maven - name: Publish package @@ -110,16 +88,16 @@ jobs: - build - test steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v4 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v4 with: username: ${{secrets.DOCKERHUB_USERNAME}} password: ${{secrets.DOCKERHUB_TOKEN}} - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: push: true tags: vaimee/sepa:${{github.ref_name}},vaimee/sepa:latest