@@ -17,54 +17,32 @@ jobs:
17
17
runs-on : ubuntu-latest
18
18
19
19
steps :
20
- - uses : actions/checkout@v2
21
- - name : Set up JDK 13
22
- uses : actions/setup-java@v2
20
+ - uses : actions/checkout@v4
21
+ - name : Set up JDK 23
22
+ uses : actions/setup-java@v4
23
23
with :
24
- java-version : ' 13 '
24
+ java-version : ' 23 '
25
25
distribution : ' adopt'
26
26
cache : maven
27
27
- name : Build with Maven
28
28
run : mvn --batch-mode --update-snapshots compile
29
29
30
30
test :
31
31
runs-on : ubuntu-latest
32
- needs : build
33
-
34
- services :
35
- blazegraph :
36
- image : nawer/blazegraph:2.1.5
37
- ports :
38
- - 9999:9999
39
-
32
+ needs : build
40
33
steps :
41
- - uses : actions/checkout@v2
42
- - name : Set up JDK 13
43
- uses : actions/setup-java@v2
34
+ - uses : actions/checkout@v4
35
+ - name : Set up JDK 23
36
+ uses : actions/setup-java@v4
44
37
with :
45
- java-version : ' 13 '
38
+ java-version : ' 23 '
46
39
distribution : ' adopt'
47
40
cache : maven
48
- - name : wait for blazegraph
49
- uses : nev7n/wait_for_response@v1
50
- with :
51
- url : ' http://localhost:9999/blazegraph/namespace/kb/sparql'
52
- responseCode : 200
53
- timeout : 20000
54
- interval : 500
55
41
- name : package engine and launch
56
42
run : |
57
43
mvn package
58
44
cd engine/target
59
- mv endpoints/endpoint-blazegraph.jpar endpoint.jpar
60
- echo launching engine with this configuration
61
- echo SPARQL ENDPOINT
62
- cat endpoint.jpar
63
- echo ENGINE PROPERTIES
64
- cat engine.jpar
65
- echo LOG4J
66
- cat log4j2-debug.xml
67
- java -Dlog4j.configurationFile=./log4j2-debug.xml -jar engine-v0.15.0.jar -engine engine.jpar -endpoint endpoint.jpar > log.txt &
45
+ java -Dlog4j.configurationFile=./log4j2-debug.xml -jar engine-1.0.0-SNAPSHOT.jar > log.txt &
68
46
shell : bash
69
47
- name : wait for SEPA engine
70
48
uses : nev7n/wait_for_response@v1
76
54
- name : verify
77
55
run : mvn verify -e -Dlog4j2.level=trace
78
56
- name : publish Engine log
79
- uses : actions/upload-artifact@v2
57
+ uses : actions/upload-artifact@v4
80
58
if : always()
81
59
with :
82
60
name : engine-log
@@ -92,10 +70,10 @@ jobs:
92
70
contents : read
93
71
packages : write
94
72
steps :
95
- - uses : actions/checkout@v2
96
- - uses : actions/setup-java@v2
73
+ - uses : actions/checkout@v4
74
+ - uses : actions/setup-java@v4
97
75
with :
98
- java-version : ' 13 '
76
+ java-version : ' 23 '
99
77
distribution : ' adopt'
100
78
cache : maven
101
79
- name : Publish package
@@ -110,16 +88,16 @@ jobs:
110
88
- build
111
89
- test
112
90
steps :
113
- - uses : actions/checkout@v3
91
+ - uses : actions/checkout@v4
114
92
- name : Set up Docker Buildx
115
- uses : docker/setup-buildx-action@v2
93
+ uses : docker/setup-buildx-action@v4
116
94
- name : Login to DockerHub
117
- uses : docker/login-action@v2
95
+ uses : docker/login-action@v4
118
96
with :
119
97
username : ${{secrets.DOCKERHUB_USERNAME}}
120
98
password : ${{secrets.DOCKERHUB_TOKEN}}
121
99
- name : Build and push
122
- uses : docker/build-push-action@v3
100
+ uses : docker/build-push-action@v4
123
101
with :
124
102
push : true
125
103
tags : vaimee/sepa:${{github.ref_name}},vaimee/sepa:latest
0 commit comments