-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (41 loc) · 1.54 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Test ARLAS-persistence
on: push
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Maven # From https://github.com/actions/cache/blob/main/examples.md
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Warm-up mvn cache
run: |
mvn --version
mvn clean verify
- name: Prepare tests
run: |
sudo sysctl -w vm.max_map_count=262144
sudo mkdir -p /opt/app
sudo cp arlas-persistence-tests/src/test/resources/arlas-test.pem /opt/app/
sudo cp docker/docker-files/pgCreateTable.sql /opt/app/
- name: Run tests [file engine]
env:
# secrets are defined here : https://github.com/organizations/gisaia/settings/secrets/actions
DOCKER_USERNAME: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
run: scripts/ci/tests-integration-stage.sh --stage="REST_FILE"
- name: Run tests [hibernate engine]
env:
# secrets are defined here : https://github.com/organizations/gisaia/settings/secrets/actions
DOCKER_USERNAME: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
run: scripts/ci/tests-integration-stage.sh --stage="REST_HIBERNATE"