27
27
strategy :
28
28
matrix :
29
29
java : [21]
30
- env :
31
- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
32
30
33
31
name : Build and Test MLCommons Plugin on linux
34
32
if : github.repository == 'opensearch-project/ml-commons'
@@ -41,21 +39,23 @@ jobs:
41
39
# this image tag is subject to change as more dependencies and updates will arrive over time
42
40
image : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
43
41
# need to switch to root so that github actions can install runner binary on container without permission issues.
44
- options : --user root
42
+ options : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}
45
43
46
44
steps :
45
+ - name : Run start commands
46
+ run : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
47
47
- name : Setup Java ${{ matrix.java }}
48
48
uses : actions/setup-java@v1
49
49
with :
50
50
java-version : ${{ matrix.java }}
51
51
52
- - uses : aws-actions/configure-aws-credentials@v2
52
+ - uses : aws-actions/configure-aws-credentials@v4
53
53
with :
54
54
role-to-assume : ${{ secrets.ML_ROLE }}
55
55
aws-region : us-west-2
56
56
57
57
- name : Checkout MLCommons
58
- uses : actions/checkout@v3
58
+ uses : actions/checkout@v4
59
59
with :
60
60
ref : ${{ github.event.pull_request.head.sha }}
61
61
77
77
echo "build-test-linux=$plugin" >> $GITHUB_OUTPUT
78
78
79
79
- name : Upload Coverage Report
80
- uses : codecov/codecov-action@v1
80
+ uses : codecov/codecov-action@v4
81
81
with :
82
82
flags : ml-commons
83
83
token : ${{ secrets.CODECOV_TOKEN }}
@@ -101,7 +101,7 @@ jobs:
101
101
runs-on : ubuntu-latest
102
102
103
103
steps :
104
- - uses : aws-actions/configure-aws-credentials@v2
104
+ - uses : aws-actions/configure-aws-credentials@v4
105
105
with :
106
106
role-to-assume : ${{ secrets.ML_ROLE }}
107
107
aws-region : us-west-2
@@ -112,11 +112,11 @@ jobs:
112
112
java-version : ${{ matrix.java }}
113
113
114
114
- name : Checkout MLCommons
115
- uses : actions/checkout@v3
115
+ uses : actions/checkout@v4
116
116
with :
117
117
ref : ${{ github.event.pull_request.head.sha }}
118
118
119
- - uses : actions/download-artifact@v4.1.7
119
+ - uses : actions/download-artifact@v4
120
120
with :
121
121
name : ml-plugin-linux-${{ matrix.java }}
122
122
@@ -181,7 +181,7 @@ jobs:
181
181
fi
182
182
183
183
- name : Upload Coverage Report
184
- uses : codecov/codecov-action@v3
184
+ uses : codecov/codecov-action@v4
185
185
with :
186
186
flags : ml-commons
187
187
token : ${{ secrets.CODECOV_TOKEN }}
@@ -202,14 +202,14 @@ jobs:
202
202
with :
203
203
java-version : ${{ matrix.java }}
204
204
205
- - uses : aws-actions/configure-aws-credentials@v2
205
+ - uses : aws-actions/configure-aws-credentials@v4
206
206
with :
207
207
role-to-assume : ${{ secrets.ML_ROLE }}
208
208
aws-region : us-west-2
209
209
210
210
# ml-commons
211
211
- name : Checkout MLCommons
212
- uses : actions/checkout@v3
212
+ uses : actions/checkout@v4
213
213
with :
214
214
ref : ${{ github.event.pull_request.head.sha }}
215
215
0 commit comments