-
Notifications
You must be signed in to change notification settings - Fork 25
64 lines (61 loc) · 2 KB
/
deploy-docs-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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 }}