forked from IGinX-THU/IGinX
-
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.
- Loading branch information
1 parent
bea9d45
commit 45081e4
Showing
10 changed files
with
105 additions
and
85 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
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 |
---|---|---|
|
@@ -13,7 +13,40 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
Build-IGinX-Dev: | ||
strategy: | ||
matrix: | ||
java: [ 8 ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Cache Maven Package Outputs and Intermediates | ||
id: cache-maven-package | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
* | ||
!.git | ||
!docs | ||
!conf | ||
key: build-${{ github.run_id }} | ||
- name: Maven Package | ||
if: steps.cache-maven-package.outputs.cache-hit != 'true' | ||
run: mvn clean package -DskipTests | ||
|
||
InfluxDB-Capacity-Expansion-ds: | ||
needs: Build-IGinX-Dev | ||
strategy: | ||
fail-fast: false | ||
#max-parallel: 20 | ||
|
@@ -23,18 +56,31 @@ jobs: | |
os: [ ubuntu-latest, macos-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
- name: Cache Maven Package Outputs and Intermediates | ||
id: cache-maven-package | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
* | ||
!.git | ||
!docs | ||
!conf | ||
key: build-${{ github.run_id }} | ||
- name: Check Cache Hit | ||
if: steps.cache-maven-package.outputs.cache-hit != 'true' | ||
run: exit 1 | ||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Python dependencies | ||
- name: Install Python Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Run ZooKeeper | ||
run: | | ||
if [ "$RUNNER_OS" == "Linux" ]; then | ||
|
@@ -59,8 +105,6 @@ jobs: | |
echo "$RUNNER_OS is not supported" | ||
exit 1 | ||
fi | ||
- name: Install with Maven | ||
run: mvn clean package -DskipTests | ||
- name: Write history Data | ||
run: | | ||
mvn test -q -Dtest=InfluxDBHistoryDataGeneratorTest -DfailIfNoTests=false | ||
|
@@ -71,6 +115,7 @@ jobs: | |
nohup "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh" & | ||
InfluxDB-SQL-ds: | ||
needs: Build-IGinX-Dev | ||
strategy: | ||
fail-fast: false | ||
#max-parallel: 20 | ||
|
@@ -80,24 +125,31 @@ jobs: | |
os: [ ubuntu-latest, macos-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
- name: Cache Maven Package Outputs and Intermediates | ||
id: cache-maven-package | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
* | ||
!.git | ||
!docs | ||
!conf | ||
key: build-${{ github.run_id }} | ||
- name: Check Cache Hit | ||
if: steps.cache-maven-package.outputs.cache-hit != 'true' | ||
run: exit 1 | ||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Python dependencies | ||
- name: Install Python Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Cache Maven packages | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: Run ZooKeeper | ||
run: | | ||
if [ "$RUNNER_OS" == "Linux" ]; then | ||
|
@@ -122,8 +174,6 @@ jobs: | |
echo "$RUNNER_OS is not supported" | ||
exit 1 | ||
fi | ||
- name: Install with Maven | ||
run: mvn clean package -DskipTests | ||
- name: Start IginX | ||
run: | | ||
chmod +x "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh" | ||
|
@@ -136,6 +186,7 @@ jobs: | |
name: codecov | ||
|
||
InfluxDB-SQL-SessionPool-ds: | ||
needs: Build-IGinX-Dev | ||
strategy: | ||
fail-fast: false | ||
#max-parallel: 20 | ||
|
@@ -145,24 +196,31 @@ jobs: | |
os: [ ubuntu-latest, macos-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
- name: Cache Maven Package Outputs and Intermediates | ||
id: cache-maven-package | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
* | ||
!.git | ||
!docs | ||
!conf | ||
key: build-${{ github.run_id }} | ||
- name: Check Cache Hit | ||
if: steps.cache-maven-package.outputs.cache-hit != 'true' | ||
run: exit 1 | ||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Python dependencies | ||
- name: Install Python Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Cache Maven packages | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: Run ZooKeeper | ||
run: | | ||
if [ "$RUNNER_OS" == "Linux" ]; then | ||
|
@@ -187,8 +245,6 @@ jobs: | |
echo "$RUNNER_OS is not supported" | ||
exit 1 | ||
fi | ||
- name: Install with Maven | ||
run: mvn clean package -DskipTests | ||
- name: Start IginX | ||
uses: ./.github/actions/iginxRunner | ||
with: | ||
|
@@ -204,7 +260,7 @@ jobs: | |
with: | ||
version: ${VERSION} | ||
- name: A Lame Integration Test with Maven for SQL | ||
run: mvn test -q -Dtest=InfluxDBSQLSessionPoolIT -DfailIfNoTests=false | ||
run: mvn surefire:test -q -Dtest=InfluxDBSQLSessionPoolIT -DfailIfNoTests=false | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./**/target/site/jacoco/jacoco.xml | ||
|
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
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
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