-
Notifications
You must be signed in to change notification settings - Fork 141
48 lines (38 loc) · 1.14 KB
/
sql-test-and-build-workflow.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
name: SQL Java CI
on: [push, pull_request]
env:
OPENSEARCH_VERSION: '1.3.20-SNAPSHOT'
jobs:
build:
strategy:
matrix:
java:
- 8
- 11
- 14
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Build with Gradle
run: ./gradlew build assemble -Dopensearch.version=${{ env.OPENSEARCH_VERSION }}
- name: Run backward compatibility tests
run: ./bwctest.sh
- name: Create Artifact Path
run: |
mkdir -p opensearch-sql-builds
cp -r ./plugin/build/distributions/*.zip opensearch-sql-builds/
# This step uses the codecov-action Github action: https://github.com/codecov/codecov-action
- name: Upload SQL Coverage Report
uses: codecov/codecov-action@v1
with:
flags: sql-engine
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: opensearch-sql-${{ matrix.java }}
path: opensearch-sql-builds