Skip to content

Commit 0757e11

Browse files
committed
Attempt to reuse build in Action
1 parent bea9d45 commit 0757e11

10 files changed

+61
-80
lines changed

.github/workflows/api-rest.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: "API-Test-RESTful"
22

3-
on:
4-
pull_request:
5-
types: [opened, reopened]
6-
branches:
7-
- main
3+
on: workflow_dispatch
84
env:
95
VERSION: 0.6.0-SNAPSHOT
106

.github/workflows/api-session.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: "API-Test-SESSIONv2"
22

3-
on:
4-
pull_request:
5-
types: [opened, reopened]
6-
branches:
7-
- main
3+
on: workflow_dispatch
84
env:
95
VERSION: 0.6.0-SNAPSHOT
106

.github/workflows/capacity-expansion.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: "Capacity-Expansion-Test"
2-
on:
3-
pull_request:
4-
types: [opened, reopened]
5-
branches:
6-
- main
2+
on: workflow_dispatch
73
env:
84
VERSION: 0.6.0-SNAPSHOT
95
concurrency:

.github/workflows/ds-influxdb.yml

+52-35
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,31 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16+
Build-IGinX-Dev:
17+
runs-on: ubuntu-latest
18+
matrix:
19+
java: [ 8 ]
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: actions/setup-java@v3
23+
with:
24+
java-version: ${{ matrix.java }}
25+
- name: Cache local Maven repository
26+
uses: actions/cache@v3
27+
with:
28+
path: ~/.m2/repository
29+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
30+
restore-keys: |
31+
${{ runner.os }}-maven-
32+
- name: Maven Package
33+
run: mvn clean package -DskipTests
34+
- name: Upload Build Outputs and Intermediates
35+
uses: actions/upload-artifact@v3
36+
with:
37+
name: IGinX-Java${{ matrix.java }}-Dev
38+
path: .
1639
InfluxDB-Capacity-Expansion-ds:
40+
needs: Build-IGinX-Dev
1741
strategy:
1842
fail-fast: false
1943
#max-parallel: 20
@@ -23,16 +47,19 @@ jobs:
2347
os: [ ubuntu-latest, macos-latest ]
2448
runs-on: ${{ matrix.os }}
2549
steps:
26-
- uses: actions/checkout@v2
27-
- name: Set up Python ${{ matrix.python-version }}
50+
- name: Download IGinX-Java${{ matrix.java }}-Dev
51+
uses: actions/download-artifact@v3
52+
with:
53+
name: IGinX-Java${{ matrix.java }}-Dev
54+
- name: Setup Python ${{ matrix.python-version }}
2855
uses: actions/setup-python@v3
2956
with:
3057
python-version: ${{ matrix.python-version }}
31-
- name: Install Python dependencies
58+
- name: Install Python Dependencies
3259
run: |
3360
python -m pip install --upgrade pip
34-
- name: Set up JDK ${{ matrix.java }}
35-
uses: actions/setup-java@v1
61+
- name: Setup JDK ${{ matrix.java }}
62+
uses: actions/setup-java@v3
3663
with:
3764
java-version: ${{ matrix.java }}
3865
- name: Run ZooKeeper
@@ -59,8 +86,6 @@ jobs:
5986
echo "$RUNNER_OS is not supported"
6087
exit 1
6188
fi
62-
- name: Install with Maven
63-
run: mvn clean package -DskipTests
6489
- name: Write history Data
6590
run: |
6691
mvn test -q -Dtest=InfluxDBHistoryDataGeneratorTest -DfailIfNoTests=false
@@ -71,6 +96,7 @@ jobs:
7196
nohup "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh" &
7297
7398
InfluxDB-SQL-ds:
99+
needs: Build-IGinX-Dev
74100
strategy:
75101
fail-fast: false
76102
#max-parallel: 20
@@ -80,24 +106,21 @@ jobs:
80106
os: [ ubuntu-latest, macos-latest ]
81107
runs-on: ${{ matrix.os }}
82108
steps:
83-
- uses: actions/checkout@v2
84-
- name: Set up Python ${{ matrix.python-version }}
109+
- name: Download IGinX-Java${{ matrix.java }}-Dev
110+
uses: actions/download-artifact@v3
111+
with:
112+
name: IGinX-Java${{ matrix.java }}-Dev
113+
- name: Setup Python ${{ matrix.python-version }}
85114
uses: actions/setup-python@v3
86115
with:
87116
python-version: ${{ matrix.python-version }}
88-
- name: Install Python dependencies
117+
- name: Install Python Dependencies
89118
run: |
90119
python -m pip install --upgrade pip
91-
- name: Set up JDK ${{ matrix.java }}
92-
uses: actions/setup-java@v1
120+
- name: Setup JDK ${{ matrix.java }}
121+
uses: actions/setup-java@v3
93122
with:
94123
java-version: ${{ matrix.java }}
95-
- name: Cache Maven packages
96-
uses: actions/[email protected]
97-
with:
98-
path: ~/.m2
99-
key: ${{ runner.os }}-m2-${{ hashFiles('/pom.xml') }}
100-
restore-keys: ${{ runner.os }}-m2
101124
- name: Run ZooKeeper
102125
run: |
103126
if [ "$RUNNER_OS" == "Linux" ]; then
@@ -122,20 +145,19 @@ jobs:
122145
echo "$RUNNER_OS is not supported"
123146
exit 1
124147
fi
125-
- name: Install with Maven
126-
run: mvn clean package -DskipTests
127148
- name: Start IginX
128149
run: |
129150
chmod +x "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh"
130151
nohup "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh" &
131152
- name: A Lame Integration Test with Maven for SQL
132-
run: mvn test -q -Dtest=InfluxDBSQLSessionIT -DfailIfNoTests=false
153+
run: mvn surefire:test -q -Dtest=InfluxDBSQLSessionIT -DfailIfNoTests=false
133154
- uses: codecov/codecov-action@v1
134155
with:
135156
file: ./**/target/site/jacoco/jacoco.xml
136157
name: codecov
137158

138159
InfluxDB-SQL-SessionPool-ds:
160+
needs: Build-IGinX-Dev
139161
strategy:
140162
fail-fast: false
141163
#max-parallel: 20
@@ -145,24 +167,21 @@ jobs:
145167
os: [ ubuntu-latest, macos-latest ]
146168
runs-on: ${{ matrix.os }}
147169
steps:
148-
- uses: actions/checkout@v2
149-
- name: Set up Python ${{ matrix.python-version }}
170+
- name: Download IGinX-Java${{ matrix.java }}-Dev
171+
uses: actions/download-artifact@v3
172+
with:
173+
name: IGinX-Java${{ matrix.java }}-Dev
174+
- name: Setup Python ${{ matrix.python-version }}
150175
uses: actions/setup-python@v3
151176
with:
152177
python-version: ${{ matrix.python-version }}
153-
- name: Install Python dependencies
178+
- name: Install Python Dependencies
154179
run: |
155180
python -m pip install --upgrade pip
156-
- name: Set up JDK ${{ matrix.java }}
157-
uses: actions/setup-java@v1
181+
- name: Setup JDK ${{ matrix.java }}
182+
uses: actions/setup-java@v3
158183
with:
159184
java-version: ${{ matrix.java }}
160-
- name: Cache Maven packages
161-
uses: actions/[email protected]
162-
with:
163-
path: ~/.m2
164-
key: ${{ runner.os }}-m2-${{ hashFiles('/pom.xml') }}
165-
restore-keys: ${{ runner.os }}-m2
166185
- name: Run ZooKeeper
167186
run: |
168187
if [ "$RUNNER_OS" == "Linux" ]; then
@@ -187,8 +206,6 @@ jobs:
187206
echo "$RUNNER_OS is not supported"
188207
exit 1
189208
fi
190-
- name: Install with Maven
191-
run: mvn clean package -DskipTests
192209
- name: Start IginX
193210
uses: ./.github/actions/iginxRunner
194211
with:
@@ -204,7 +221,7 @@ jobs:
204221
with:
205222
version: ${VERSION}
206223
- name: A Lame Integration Test with Maven for SQL
207-
run: mvn test -q -Dtest=InfluxDBSQLSessionPoolIT -DfailIfNoTests=false
224+
run: mvn surefire:test -q -Dtest=InfluxDBSQLSessionPoolIT -DfailIfNoTests=false
208225
- uses: codecov/codecov-action@v1
209226
with:
210227
file: ./**/target/site/jacoco/jacoco.xml

.github/workflows/ds-iotdb.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: "ITTest-ds-IoTDB"
22

3-
on:
4-
pull_request:
5-
types: [opened, reopened]
6-
branches:
7-
- main
3+
on: workflow_dispatch
84
env:
95
VERSION: 0.6.0-SNAPSHOT
106

.github/workflows/ds-parquet.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: "ITTest-ds-Parquet"
22

3-
on:
4-
pull_request:
5-
types: [opened, reopened]
6-
branches:
7-
- main
3+
on: workflow_dispatch
84
env:
95
VERSION: 0.6.0-SNAPSHOT
106

.github/workflows/func-transform.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: "Function-Test-Transform"
22

3-
on:
4-
pull_request:
5-
types: [opened, reopened]
6-
branches:
7-
- main
3+
on: workflow_dispatch
84
env:
95
VERSION: 0.6.0-SNAPSHOT
106

.github/workflows/func-udf.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: "Function-Test-UDF"
22

3-
on:
4-
pull_request:
5-
types: [opened, reopened]
6-
branches:
7-
- main
3+
on: workflow_dispatch
84
env:
95
VERSION: 0.6.0-SNAPSHOT
106

.github/workflows/scale-out.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: "Scale-out-On-IoTDB"
2-
on:
3-
pull_request:
4-
types: [opened, reopened]
5-
branches:
6-
- main
2+
on: workflow_dispatch
73
env:
84
VERSION: 0.6.0-SNAPSHOT
95

.github/workflows/unit-mds.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: "Metadata-Service-Test"
22

3-
on:
4-
pull_request:
5-
types: [opened, reopened]
6-
branches:
7-
- main
3+
on: workflow_dispatch
84

95
concurrency:
106
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)