e2e.yaml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing,
  12. # software distributed under the License is distributed on an
  13. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. # KIND, either express or implied. See the License for the
  15. # specific language governing permissions and limitations
  16. # under the License.
  17. name: End to End Tests
  18. on:
  19. push:
  20. pull_request:
  21. jobs:
  22. compatibility:
  23. strategy:
  24. matrix:
  25. jdk: [8, 11]
  26. zk: [3.5.9, 3.6.3, 3.7.0, nightly]
  27. fail-fast: false
  28. timeout-minutes: 360
  29. runs-on: ubuntu-latest
  30. steps:
  31. - uses: actions/checkout@v3
  32. - name: Set up JDK ${{ matrix.jdk }}
  33. uses: actions/setup-java@v1
  34. with:
  35. java-version: ${{ matrix.jdk }}
  36. - name: Cache local maven repository
  37. uses: actions/cache@v2
  38. with:
  39. path: |
  40. ~/.m2/repository/
  41. !~/.m2/repository/org/apache/zookeeper
  42. key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
  43. restore-keys: ${{ runner.os }}-m2
  44. - name: Show the first log message
  45. run: git log -n1
  46. - name: Install C Dependencies
  47. run: sudo apt-get install libcppunit-dev libsasl2-dev
  48. - name: Build with Maven
  49. run: mvn -B -V -e -ntp "-Dstyle.color=always" package -DskipTests
  50. env:
  51. MAVEN_OPTS: -Djansi.force=true
  52. - name: Download ZooKeeper ${{ matrix.zk }}
  53. if: matrix.zk != 'nightly'
  54. run: |
  55. curl -O https://archive.apache.org/dist/zookeeper/zookeeper-${{ matrix.zk }}/apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
  56. tar -xzvf apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
  57. - name: Test ZooKeeper nightly server and ${{ matrix.zk }} client
  58. if: matrix.zk != 'nightly'
  59. run: tools/ci/test-connectivity.py --server . --client apache-zookeeper-${{ matrix.zk }}-bin
  60. env:
  61. ZOOCFG: zoo_sample.cfg
  62. - name: Test ZooKeeper ${{ matrix.zk }} server and nightly client
  63. if: matrix.zk != 'nightly'
  64. run: tools/ci/test-connectivity.py --server apache-zookeeper-${{ matrix.zk }}-bin --client .
  65. env:
  66. ZOOCFG: zoo_sample.cfg
  67. - name: Test ZooKeeper nightly server and client
  68. if: matrix.zk == 'nightly'
  69. run: tools/ci/test-connectivity.py --server . --client .
  70. env:
  71. ZOOCFG: zoo_sample.cfg