Skip to content

Commit

Permalink
Attempt to reuse build in Action
Browse files Browse the repository at this point in the history
  • Loading branch information
YouJiacheng committed Feb 21, 2023
1 parent bea9d45 commit 0757e11
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 80 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/api-rest.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "API-Test-RESTful"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/api-session.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "API-Test-SESSIONv2"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/capacity-expansion.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: "Capacity-Expansion-Test"
on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT
concurrency:
Expand Down
87 changes: 52 additions & 35 deletions .github/workflows/ds-influxdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,31 @@ concurrency:
cancel-in-progress: true

jobs:
Build-IGinX-Dev:
runs-on: ubuntu-latest
matrix:
java: [ 8 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
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: Maven Package
run: mvn clean package -DskipTests
- name: Upload Build Outputs and Intermediates
uses: actions/upload-artifact@v3
with:
name: IGinX-Java${{ matrix.java }}-Dev
path: .
InfluxDB-Capacity-Expansion-ds:
needs: Build-IGinX-Dev
strategy:
fail-fast: false
#max-parallel: 20
Expand All @@ -23,16 +47,19 @@ jobs:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
- name: Download IGinX-Java${{ matrix.java }}-Dev
uses: actions/download-artifact@v3
with:
name: IGinX-Java${{ matrix.java }}-Dev
- 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
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
- name: Run ZooKeeper
Expand All @@ -59,8 +86,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
Expand All @@ -71,6 +96,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
Expand All @@ -80,24 +106,21 @@ jobs:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
- name: Download IGinX-Java${{ matrix.java }}-Dev
uses: actions/download-artifact@v3
with:
name: IGinX-Java${{ matrix.java }}-Dev
- 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
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v3
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
Expand All @@ -122,20 +145,19 @@ 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"
nohup "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh" &
- name: A Lame Integration Test with Maven for SQL
run: mvn test -q -Dtest=InfluxDBSQLSessionIT -DfailIfNoTests=false
run: mvn surefire:test -q -Dtest=InfluxDBSQLSessionIT -DfailIfNoTests=false
- uses: codecov/codecov-action@v1
with:
file: ./**/target/site/jacoco/jacoco.xml
name: codecov

InfluxDB-SQL-SessionPool-ds:
needs: Build-IGinX-Dev
strategy:
fail-fast: false
#max-parallel: 20
Expand All @@ -145,24 +167,21 @@ jobs:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
- name: Download IGinX-Java${{ matrix.java }}-Dev
uses: actions/download-artifact@v3
with:
name: IGinX-Java${{ matrix.java }}-Dev
- 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
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v3
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
Expand All @@ -187,8 +206,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:
Expand All @@ -204,7 +221,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
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/ds-iotdb.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "ITTest-ds-IoTDB"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/ds-parquet.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "ITTest-ds-Parquet"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/func-transform.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "Function-Test-Transform"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/func-udf.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "Function-Test-UDF"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/scale-out.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: "Scale-out-On-IoTDB"
on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/unit-mds.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "Metadata-Service-Test"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down

0 comments on commit 0757e11

Please sign in to comment.