| name: Cluster Test |
| |
| on: |
| push: |
| branches: |
| - test_cluster |
| paths-ignore: |
| - 'docs/**' |
| pull_request: |
| branches: |
| - test_cluster |
| paths-ignore: |
| - 'docs/**' |
| # 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: |
| unix: |
| strategy: |
| fail-fast: false |
| max-parallel: 20 |
| matrix: |
| java: [ 8 ] |
| os: [ ubuntu-latest ] |
| runs-on: ${{ matrix.os}} |
| |
| steps: |
| - uses: actions/checkout@v2 |
| - name: Set up JDK ${{ matrix.java }} |
| uses: actions/setup-java@v1 |
| with: |
| java-version: ${{ matrix.java }} |
| - name: Cache Maven packages |
| uses: actions/cache@v2 |
| with: |
| path: ~/.m2 |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} |
| restore-keys: ${{ runner.os }}-m2- |
| - name: Check Apache Rat |
| run: mvn -B apache-rat:check -P site -P code-coverage |
| - name: IT/UT Test |
| shell: bash |
| # we do not compile client-cpp for saving time, it is tested in client.yml |
| # we can skip influxdb-protocol because it has been tested separately in influxdb-protocol.yml |
| run: mvn -B clean verify -Dsession.test.skip=true -Diotdb.test.skip=true -Dcluster.test.skip=true -Dtsfile.test.skip=true -pl integration -am -PCluster |