File tree Expand file tree Collapse file tree 5 files changed +129
-6
lines changed Expand file tree Collapse file tree 5 files changed +129
-6
lines changed Original file line number Diff line number Diff line change 15
15
- " qc-v*"
16
16
17
17
jobs :
18
+ test :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+
23
+ - name : Set up JDK 21 for x64
24
+ uses : actions/setup-java@v4
25
+ with :
26
+ java-version : ' 21'
27
+ distribution : ' temurin'
28
+ architecture : x64
29
+
30
+ - name : Run tests
31
+ run : mvn test -pl quads-creator
32
+
18
33
push_to_registry :
19
34
name : Push Docker image to Docker Hub
20
35
runs-on : ubuntu-latest
36
+ needs : test
37
+ if : success()
21
38
steps :
22
39
# Checkout the repo
23
40
# https://github.com/actions/checkout
24
41
- name : Check out the repo
25
- uses : actions/checkout@v3
42
+ uses : actions/checkout@v4
26
43
27
44
# Log in to Docker Hub
28
45
# https://github.com/docker/login-action
Original file line number Diff line number Diff line change 15
15
- " ql-v*"
16
16
17
17
jobs :
18
+ test :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+
23
+ - name : Run docker-compose
24
+ uses :
hoverkraft-tech/[email protected]
25
+ with :
26
+ compose-file : " ./docker-compose.yml"
27
+ services : |
28
+ postgres
29
+ postgres-test
30
+
31
+ - name : Set up JDK 21 for x64
32
+ uses : actions/setup-java@v4
33
+ with :
34
+ java-version : ' 21'
35
+ distribution : ' temurin'
36
+ architecture : x64
37
+
38
+ - name : Run tests
39
+ run : mvn test -pl quads-loader
40
+
18
41
push_to_registry :
19
42
name : Push Docker image to Docker Hub
20
43
runs-on : ubuntu-latest
44
+ needs : test
45
+ if : success()
21
46
steps :
22
47
# Checkout the repo
23
48
# https://github.com/actions/checkout
24
49
- name : Check out the repo
25
- uses : actions/checkout@v3
50
+ uses : actions/checkout@v4
26
51
27
52
# Log in to Docker Hub
28
53
# https://github.com/docker/login-action
Original file line number Diff line number Diff line change 15
15
- " qq-v*"
16
16
17
17
jobs :
18
+ test :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+
23
+ - name : Run docker-compose
24
+ uses :
hoverkraft-tech/[email protected]
25
+ with :
26
+ compose-file : " ./docker-compose.yml"
27
+
28
+ - name : Wait for Blazegraph to be ready
29
+ run : |
30
+ until curl -sSf 'http://localhost:9999/blazegraph/sparql' > /dev/null; do
31
+ echo "Waiting for Blazegraph..."
32
+ sleep 5
33
+ done
34
+
35
+ - name : Initialize blazegraph datasets
36
+ run : |
37
+ find quads-query/src/test/resources/dataset/theoretical -type f -name "*.ttl.trig" -print0 | while IFS= read -r -d '' file
38
+ do
39
+ curl -X POST --location 'http://localhost:9999/blazegraph/sparql' \
40
+ --header 'Content-Type:application/x-trig' \
41
+ --connect-timeout 60 \
42
+ --data-binary @"$file"
43
+ done
44
+
45
+ - name : Set up JDK 21 for x64
46
+ uses : actions/setup-java@v4
47
+ with :
48
+ java-version : ' 21'
49
+ distribution : ' temurin'
50
+ architecture : x64
51
+
52
+ - name : Run tests
53
+ run : mvn test -pl quads-query
54
+
18
55
push_to_registry :
19
56
name : Push Docker image to Docker Hub
20
57
runs-on : ubuntu-latest
58
+ needs : test
59
+ if : success()
21
60
steps :
22
61
# Checkout the repo
23
62
# https://github.com/actions/checkout
24
63
- name : Check out the repo
25
- uses : actions/checkout@v3
64
+ uses : actions/checkout@v4
26
65
27
66
# Log in to Docker Hub
28
67
# https://github.com/docker/login-action
Original file line number Diff line number Diff line change
1
+ name : Run tests on push (development)
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+ - ' !master'
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+
15
+ - name : Run docker-compose
16
+ uses :
hoverkraft-tech/[email protected]
17
+ with :
18
+ compose-file : " ./docker-compose.yml"
19
+
20
+ - name : Wait for Blazegraph to be ready
21
+ run : |
22
+ until curl -sSf 'http://localhost:9999/blazegraph/sparql' > /dev/null; do
23
+ echo "Waiting for Blazegraph..."
24
+ sleep 5
25
+ done
26
+
27
+ - name : Initialize blazegraph datasets
28
+ run : |
29
+ find quads-query/src/test/resources/dataset/theoretical -type f -name "*.ttl.trig" -print0 | while IFS= read -r -d '' file
30
+ do
31
+ curl -X POST --location 'http://localhost:9999/blazegraph/sparql' \
32
+ --header 'Content-Type:application/x-trig' \
33
+ --connect-timeout 60 \
34
+ --data-binary @"$file"
35
+ done
36
+
37
+ - name : Set up JDK 21 for x64
38
+ uses : actions/setup-java@v4
39
+ with :
40
+ java-version : ' 21'
41
+ distribution : ' temurin'
42
+ architecture : x64
43
+
44
+ - name : Run tests
45
+ run : mvn test
Original file line number Diff line number Diff line change @@ -48,9 +48,6 @@ services:
48
48
memory : ${BD_RAM_LIMITATION:-16Gb}
49
49
50
50
ud-quads-loader :
51
- # build:
52
- # context: quads-loader
53
- # dockerfile: Dockerfile
54
51
image : vcity/quads-loader
55
52
depends_on :
56
53
- postgres
You can’t perform that action at this time.
0 commit comments