Merge pull request #3524 from cffk/merid-update-fix #17
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
name: build-and-test-2.13 | ||
on: | ||
push: | ||
pull_request: | ||
permissions: # added using https://github.com/step-security/secure-repo | ||
contents: read | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> 1ea467d89c (Pin github actions to specific hash and make them read-only) | ||
======= | ||
>>>>>>> ab4e4d07e5 (Add Eclipse license scanning to CI (#2949)) | ||
>>>>>>> locationtech-main | ||
env: | ||
MAVEN_CLI_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false --batch-mode | ||
MAVEN_TEST_OPTS: -Dtest.fork.count=1 | ||
======= | ||
>>>>>>> 3f7d76fd96 (Pin github actions to specific hash and make them read-only) | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
>>>>>>> locationtech-main | ||
======= | ||
env: | ||
MAVEN_CLI_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false --batch-mode | ||
MAVEN_TEST_OPTS: -Dtest.fork.count=1 | ||
>>>>>>> 0741686e65 (Add Eclipse license scanning to CI (#2949)) | ||
<<<<<<< HEAD | ||
======= | ||
======= | ||
>>>>>>> 1ea467d89c (Pin github actions to specific hash and make them read-only) | ||
======= | ||
======= | ||
env: | ||
MAVEN_CLI_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false --batch-mode | ||
MAVEN_TEST_OPTS: -Dtest.fork.count=1 | ||
>>>>>>> 0741686e65 (Add Eclipse license scanning to CI (#2949)) | ||
>>>>>>> ab4e4d07e5 (Add Eclipse license scanning to CI (#2949)) | ||
>>>>>>> locationtech-main | ||
jobs: | ||
build-scala: | ||
runs-on: ubuntu-latest | ||
# avoid duplicate jobs on PRs from the main repo | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | ||
steps: | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> 9796c943ef (Update github actions to latest versions) | ||
======= | ||
>>>>>>> 1ea467d89c (Pin github actions to specific hash and make them read-only) | ||
>>>>>>> locationtech-main | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | ||
- uses: actions/setup-java@3f07048e3d294f56e9b90ac5ea2c6f74e9ad0f98 # v3.10.0 | ||
======= | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
>>>>>>> 2219fefbbf (Update github actions to latest versions) | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> 1ea467d89c (Pin github actions to specific hash and make them read-only) | ||
>>>>>>> locationtech-main | ||
======= | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | ||
- uses: actions/setup-java@3f07048e3d294f56e9b90ac5ea2c6f74e9ad0f98 # v3.10.0 | ||
>>>>>>> 3f7d76fd96 (Pin github actions to specific hash and make them read-only) | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> 9796c943ef (Update github actions to latest versions) | ||
======= | ||
>>>>>>> 1ea467d89c (Pin github actions to specific hash and make them read-only) | ||
>>>>>>> locationtech-main | ||
with: | ||
distribution: 'temurin' | ||
java-version: '8' | ||
cache: 'maven' | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> 9796c943ef (Update github actions to latest versions) | ||
======= | ||
>>>>>>> da5f8fa1a3 (Fix duplicate CI build) | ||
>>>>>>> locationtech-main | ||
- name: Set Scala version | ||
run: ./build/change-scala-version.sh 2.13 | ||
- name: Build with Maven | ||
run: ./build/mvn clean install $MAVEN_CLI_OPTS -DskipTests -T4 | ||
- name: Unit tests | ||
id: test | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS -o | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> ccf4d7c3bd (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
>>>>>>> locationtech-main | ||
======= | ||
- name: Build with Maven | ||
run: mvn clean install -B -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false | ||
======= | ||
>>>>>>> 354f512a3f (Fix duplicate CI build) | ||
- name: Set Scala version | ||
run: ./build/change-scala-version.sh 2.13 | ||
- name: Build with Maven | ||
run: ./build/mvn clean install $MAVEN_CLI_OPTS -DskipTests -T4 | ||
- name: Unit tests | ||
id: test | ||
<<<<<<< HEAD | ||
run: mvn surefire:test -o -B -Dtest.fork.count=1 -Dmaven.test.jvmargs="-Xmx4g -XX:-UseGCOverheadLimit" | ||
>>>>>>> 2219fefbbf (Update github actions to latest versions) | ||
======= | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS | ||
>>>>>>> 0741686e65 (Add Eclipse license scanning to CI (#2949)) | ||
======= | ||
>>>>>>> 27d2a13b23 (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
======= | ||
======= | ||
- name: Build with Maven | ||
run: mvn clean install -B -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false | ||
======= | ||
>>>>>>> 354f512a3f (Fix duplicate CI build) | ||
- name: Set Scala version | ||
run: ./build/change-scala-version.sh 2.13 | ||
- name: Build with Maven | ||
run: ./build/mvn clean install $MAVEN_CLI_OPTS -DskipTests -T4 | ||
- name: Unit tests | ||
id: test | ||
<<<<<<< HEAD | ||
run: mvn surefire:test -o -B -Dtest.fork.count=1 -Dmaven.test.jvmargs="-Xmx4g -XX:-UseGCOverheadLimit" | ||
>>>>>>> 2219fefbbf (Update github actions to latest versions) | ||
<<<<<<< HEAD | ||
>>>>>>> 9796c943ef (Update github actions to latest versions) | ||
======= | ||
======= | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS | ||
>>>>>>> 0741686e65 (Add Eclipse license scanning to CI (#2949)) | ||
>>>>>>> ab4e4d07e5 (Add Eclipse license scanning to CI (#2949)) | ||
======= | ||
>>>>>>> ccf4d7c3bd (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
>>>>>>> locationtech-main | ||
continue-on-error: true | ||
- name: Unit tests (retry) | ||
id: test-retry | ||
if: steps.test.outcome=='failure' | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> 9796c943ef (Update github actions to latest versions) | ||
======= | ||
>>>>>>> ab4e4d07e5 (Add Eclipse license scanning to CI (#2949)) | ||
======= | ||
>>>>>>> ccf4d7c3bd (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
>>>>>>> locationtech-main | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS -o | ||
- name: HBase 1.4 unit tests | ||
id: hbase-test | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS -o -pl geomesa-hbase/geomesa-hbase-datastore -Phbase1 | ||
======= | ||
run: mvn surefire:test -o -B -Dtest.fork.count=1 -Dmaven.test.jvmargs="-Xmx4g -XX:-UseGCOverheadLimit" | ||
- name: HBase 1.4 unit tests | ||
id: hbase-test | ||
run: mvn surefire:test -pl geomesa-hbase/geomesa-hbase-datastore -Phbase1 -o -B -Dtest.fork.count=1 -Dmaven.test.jvmargs="-Xmx4g -XX:-UseGCOverheadLimit" | ||
>>>>>>> 2219fefbbf (Update github actions to latest versions) | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> ab4e4d07e5 (Add Eclipse license scanning to CI (#2949)) | ||
>>>>>>> locationtech-main | ||
======= | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS | ||
- name: HBase 1.4 unit tests | ||
id: hbase-test | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS -pl geomesa-hbase/geomesa-hbase-datastore -Phbase1 | ||
>>>>>>> 0741686e65 (Add Eclipse license scanning to CI (#2949)) | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> ccf4d7c3bd (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
>>>>>>> locationtech-main | ||
======= | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS -o | ||
- name: HBase 1.4 unit tests | ||
id: hbase-test | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS -o -pl geomesa-hbase/geomesa-hbase-datastore -Phbase1 | ||
>>>>>>> 27d2a13b23 (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> 9796c943ef (Update github actions to latest versions) | ||
======= | ||
>>>>>>> ab4e4d07e5 (Add Eclipse license scanning to CI (#2949)) | ||
======= | ||
>>>>>>> ccf4d7c3bd (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
>>>>>>> locationtech-main | ||
continue-on-error: true | ||
- name: HBase 1.4 unit tests (retry) | ||
id: hbase-test-retry | ||
if: steps.hbase-test.outcome=='failure' | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> 9796c943ef (Update github actions to latest versions) | ||
======= | ||
>>>>>>> ab4e4d07e5 (Add Eclipse license scanning to CI (#2949)) | ||
======= | ||
>>>>>>> ccf4d7c3bd (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
>>>>>>> locationtech-main | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS -o -pl geomesa-hbase/geomesa-hbase-datastore -Phbase1 | ||
======= | ||
run: mvn surefire:test -pl geomesa-hbase/geomesa-hbase-datastore -Phbase1 -o -B -Dtest.fork.count=1 -Dmaven.test.jvmargs="-Xmx4g -XX:-UseGCOverheadLimit" | ||
>>>>>>> 2219fefbbf (Update github actions to latest versions) | ||
<<<<<<< HEAD | ||
======= | ||
<<<<<<< HEAD | ||
>>>>>>> locationtech-main | ||
- name: Integration Tests | ||
run: mvn failsafe:integration-test failsafe:verify $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS | ||
- name: Remove geomesa artifacts | ||
<<<<<<< HEAD | ||
if: success() || failure() | ||
======= | ||
>>>>>>> 2219fefbbf (Update github actions to latest versions) | ||
======= | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS -pl geomesa-hbase/geomesa-hbase-datastore -Phbase1 | ||
<<<<<<< HEAD | ||
======= | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS -o -pl geomesa-hbase/geomesa-hbase-datastore -Phbase1 | ||
>>>>>>> 27d2a13b23 (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
======= | ||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS -o -pl geomesa-hbase/geomesa-hbase-datastore -Phbase1 | ||
>>>>>>> 27d2a13b23 (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
======= | ||
>>>>>>> 9796c943ef (Update github actions to latest versions) | ||
- name: Integration Tests | ||
run: mvn failsafe:integration-test failsafe:verify $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS | ||
- name: Remove geomesa artifacts | ||
<<<<<<< HEAD | ||
if: success() || failure() | ||
<<<<<<< HEAD | ||
>>>>>>> 0741686e65 (Add Eclipse license scanning to CI (#2949)) | ||
======= | ||
======= | ||
>>>>>>> 2219fefbbf (Update github actions to latest versions) | ||
>>>>>>> 9796c943ef (Update github actions to latest versions) | ||
======= | ||
======= | ||
======= | ||
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS -o -pl geomesa-hbase/geomesa-hbase-datastore -Phbase1 | ||
>>>>>>> 27d2a13b23 (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
>>>>>>> ccf4d7c3bd (GEOMESA-3246 Update Scala to 2.12.17 (#2976)) | ||
>>>>>>> locationtech-main | ||
- name: Integration Tests | ||
run: mvn failsafe:integration-test failsafe:verify $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS | ||
- name: Remove geomesa artifacts | ||
if: success() || failure() | ||
>>>>>>> 0741686e65 (Add Eclipse license scanning to CI (#2949)) | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> ab4e4d07e5 (Add Eclipse license scanning to CI (#2949)) | ||
>>>>>>> locationtech-main | ||
run: rm -rf ~/.m2/repository/org/locationtech/geomesa |