Upgraded to Gradle v8.6 (#104) #311
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 | |
on: | |
push: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ "8.0.392+8", "11.0.21+9", "17.0.9+9" ] | |
steps: | |
- name: Checkout project sources | |
uses: actions/checkout@v3 | |
with: | |
# https://github.com/diffplug/spotless/issues/1242 | |
fetch-depth: 0 | |
- name: Set up Azul Zulu OpenJDK Using Matrix | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: "zulu" | |
cache: gradle | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Download or get from cache Sudachi dictionary | |
id: download-and-cache-sudachi-dictionary | |
uses: ./.github/actions/download-and-cache-sudachi-dictionary | |
- name: Build | |
run: ./gradlew build | |
- name: Run unit tests | |
run: ./gradlew clean test | |
- name: Run integration tests utilizing Tokenizer/Analyzer and imported Lucene Kuromoji tests | |
run: ./gradlew clean integrationTest | |
- name: Run functional tests utilizing Lucene | |
run: ./gradlew clean functionalTest | |
- name: Run end-to-end tests utilizing a Solr instance | |
run: ./gradlew clean endToEndTest | |