File tree Expand file tree Collapse file tree 3 files changed +17
-75
lines changed Expand file tree Collapse file tree 3 files changed +17
-75
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 }}
@@ -23,11 +35,13 @@ jobs:
23
35
- name : RunBackwards Compatibility Tests
24
36
run : |
25
37
echo "Running backwards compatibility tests ..."
26
- ./gradlew bwcTestSuite
38
+ chown -R 1000:1000 `pwd`
39
+ su `id -un 1000` -c "./gradlew bwcTestSuite"
27
40
28
41
- name : Build with Gradle
29
42
run : |
30
- ./gradlew build
43
+ chown -R 1000:1000 `pwd`
44
+ su `id -un 1000` -c "./gradlew build"
31
45
32
46
- name : Upload coverage
33
47
uses : codecov/codecov-action@v1
40
54
run : |
41
55
mkdir -p reports-scheduler-builds
42
56
cp -r ./build/distributions/*.zip reports-scheduler-builds/
57
+ chown -R 1000:1000 `pwd`
43
58
44
59
- name : Upload Artifacts
45
60
uses : actions/upload-artifact@v1
You can’t perform that action at this time.
0 commit comments