-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CI on Github action * Added tests before release
- Loading branch information
Showing
5 changed files
with
129 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,39 @@ on: | |
- "ql-v*" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run docker-compose | ||
uses: hoverkraft-tech/[email protected] | ||
with: | ||
compose-file: "./docker-compose.yml" | ||
services: | | ||
postgres | ||
postgres-test | ||
- name: Set up JDK 21 for x64 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
architecture: x64 | ||
|
||
- name: Run tests | ||
run: mvn test -pl quads-loader | ||
|
||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
needs: test | ||
if: success() | ||
steps: | ||
# Checkout the repo | ||
# https://github.com/actions/checkout | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
# Log in to Docker Hub | ||
# https://github.com/docker/login-action | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,53 @@ on: | |
- "qq-v*" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run docker-compose | ||
uses: hoverkraft-tech/[email protected] | ||
with: | ||
compose-file: "./docker-compose.yml" | ||
|
||
- name: Wait for Blazegraph to be ready | ||
run: | | ||
until curl -sSf 'http://localhost:9999/blazegraph/sparql' > /dev/null; do | ||
echo "Waiting for Blazegraph..." | ||
sleep 5 | ||
done | ||
- name: Initialize blazegraph datasets | ||
run: | | ||
find quads-query/src/test/resources/dataset/theoretical -type f -name "*.ttl.trig" -print0 | while IFS= read -r -d '' file | ||
do | ||
curl -X POST --location 'http://localhost:9999/blazegraph/sparql' \ | ||
--header 'Content-Type:application/x-trig' \ | ||
--connect-timeout 60 \ | ||
--data-binary @"$file" | ||
done | ||
- name: Set up JDK 21 for x64 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
architecture: x64 | ||
|
||
- name: Run tests | ||
run: mvn test -pl quads-query | ||
|
||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
needs: test | ||
if: success() | ||
steps: | ||
# Checkout the repo | ||
# https://github.com/actions/checkout | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
# Log in to Docker Hub | ||
# https://github.com/docker/login-action | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Run tests on push (development) | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '!master' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run docker-compose | ||
uses: hoverkraft-tech/[email protected] | ||
with: | ||
compose-file: "./docker-compose.yml" | ||
|
||
- name: Wait for Blazegraph to be ready | ||
run: | | ||
until curl -sSf 'http://localhost:9999/blazegraph/sparql' > /dev/null; do | ||
echo "Waiting for Blazegraph..." | ||
sleep 5 | ||
done | ||
- name: Initialize blazegraph datasets | ||
run: | | ||
find quads-query/src/test/resources/dataset/theoretical -type f -name "*.ttl.trig" -print0 | while IFS= read -r -d '' file | ||
do | ||
curl -X POST --location 'http://localhost:9999/blazegraph/sparql' \ | ||
--header 'Content-Type:application/x-trig' \ | ||
--connect-timeout 60 \ | ||
--data-binary @"$file" | ||
done | ||
- name: Set up JDK 21 for x64 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
architecture: x64 | ||
|
||
- name: Run tests | ||
run: mvn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters