Updated pom.xml to use latest version of Elasticsearch #158
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
# Build and test zentity for each supported version of Elasticsearch whenever pushing a commit or submitting a pull request. | |
name: Commit | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- "zentity-*.*.*" | |
- "zentity-*.*.*-*" | |
pull_request: | |
branches: | |
- '**' | |
tags-ignore: | |
- "zentity-*.*.*" | |
- "zentity-*.*.*-*" | |
jobs: | |
build: | |
strategy: | |
# Attempt to run all tests. | |
fail-fast: false | |
# Build and test zentity for each version of Elasticsearch that its APIs support. | |
matrix: | |
elasticsearch: | |
- 8.13.3 | |
- 8.13.2 | |
- 8.13.1 | |
- 8.13.0 | |
# Use the latest LTS OS. | |
runs-on: ubuntu-20.04 | |
steps: | |
# Checkout the repository. | |
# Uses: https://github.com/actions/checkout | |
- name: Checkout | |
uses: actions/checkout@v2 | |
# Configure the JDK. | |
# Uses: https://github.com/actions/setup-java | |
# Elasticsearch JVM support matrix: https://www.elastic.co/support/matrix#matrix_jvm | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
# Cache Maven packages. | |
# Uses: https://github.com/actions/cache | |
- name: Cache packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
# Build and test zentity for a given version of Elasticsearch. | |
- name: Build and test | |
env: | |
ELASTICSEARCH_VERSION: ${{ matrix.elasticsearch }} | |
run: mvn --batch-mode clean install "-Delasticsearch.version=$ELASTICSEARCH_VERSION" --file pom.xml |