forked from apache/iotdb
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.58 KB
/
e2e.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: E2E Tests
on:
push:
branches:
- test/e2e
paths-ignore:
- 'docs/**'
- 'site/**'
pull_request:
branches:
- cluster_new
paths-ignore:
- 'docs/**'
- 'site/**'
# allow manually run the action:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
jobs:
E2E:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
case:
- cli
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build Distribution Zip
run: ./mvnw -B -DskipTests clean install
- name: Build Docker Image
run: |
docker build . -f docker/src/main/Dockerfile-single -t "iotdb:$GITHUB_SHA"
docker images
- name: Run Test Case ${{ matrix.case }}
run: bash test/e2e/cases/${{ matrix.case }}/run.sh
- name: Clean Up
if: ${{ always() }}
run: bash test/e2e/cases/${{ matrix.case }}/cleanup.sh
- name: TestContainer
run: |
mvn -B -T 4 integration-test -pl testcontainer