Merge pull request #153 from AnyRoad/add_matched_queries #250
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: matrix-test-and-deploy-docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@master | |
- name: Install cURL Headers | |
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev -y | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: '17' | |
cache: gradle | |
- name: Compose up | |
run: ./gradlew :search-client:composeUp | |
- name: Gradle Build | |
run: ./gradlew check :search-client:dokkaHtml -x jsTest -x jsBrowserTest -x jsNodeTest -x wasmJsBrowserTest -x wasmJsNodeTest -x wasmJsD8Test | |
- name: Compose down | |
run: ./gradlew :search-client:composeDown | |
- name: Deploy Manual | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/build/manual | |
enable_jekyll: true | |
destination_dir: manual | |
- name: Deploy Dokka | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./search-client/build/dokka/html | |
enable_jekyll: true | |
destination_dir: api | |
matrix-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: ["es-7","es-8","os-1", "os-2"] | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@master | |
- name: Install cURL Headers | |
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev -y | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: '17' | |
cache: gradle | |
- name: Compose up | |
run: ./gradlew :search-client:composeUp -PsearchEngine=${{ matrix.version }} | |
- name: Gradle Build | |
run: ./gradlew :search-client:jvmTest -PsearchEngine=${{ matrix.version }} | |
- name: Compose down | |
run: ./gradlew :search-client:composeDown -PsearchEngine=${{ matrix.version }} | |