File tree Expand file tree Collapse file tree 3 files changed +21
-74
lines changed Expand file tree Collapse file tree 3 files changed +21
-74
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,13 +3,25 @@ name: Test and Build Reports Scheduler
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
+ Get-CI-Image-Tag :
7
+ uses : opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main
8
+ with :
9
+ product : opensearch
10
+
6
11
linux-build :
12
+ needs : Get-CI-Image-Tag
7
13
strategy :
8
14
matrix :
9
15
java :
10
16
- 11
11
17
- 17
12
18
runs-on : ubuntu-latest
19
+ container :
20
+ # using the same image which is used by opensearch-build team to build the OpenSearch Distribution
21
+ # this image tag is subject to change as more dependencies and updates will arrive over time
22
+ image : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
23
+ # need to switch to root so that github actions can install runner binary on container without permission issues.
24
+ options : --user root
13
25
14
26
steps :
15
27
- name : Set up JDK ${{ matrix.java }}
20
32
- name : Checkout Reports Scheduler
21
33
uses : actions/checkout@v2
22
34
35
+ - name : RunBackwards Compatibility Tests
36
+ run : |
37
+ echo "Running backwards compatibility tests ..."
38
+ chown -R 1000:1000 `pwd`
39
+ su `id -un 1000` -c "./gradlew bwcTestSuite"
40
+
23
41
- name : Build with Gradle
24
42
run : |
25
- ./gradlew build
43
+ chown -R 1000:1000 `pwd`
44
+ su `id -un 1000` -c "./gradlew build"
26
45
27
46
- name : Upload coverage
28
47
uses : codecov/codecov-action@v1
35
54
run : |
36
55
mkdir -p reports-scheduler-builds
37
56
cp -r ./build/distributions/*.zip reports-scheduler-builds/
57
+ chown -R 1000:1000 `pwd`
38
58
39
59
- name : Upload Artifacts
40
60
uses : actions/upload-artifact@v1
You can’t perform that action at this time.
0 commit comments