24
24
strategy :
25
25
matrix :
26
26
java : [11, 17, 21]
27
- env :
28
- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
29
27
30
28
name : Build and Test MLCommons Plugin on linux
31
29
if : github.repository == 'opensearch-project/ml-commons'
@@ -38,21 +36,23 @@ jobs:
38
36
# this image tag is subject to change as more dependencies and updates will arrive over time
39
37
image : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
40
38
# need to switch to root so that github actions can install runner binary on container without permission issues.
41
- options : --user root
39
+ options : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}
42
40
43
41
steps :
42
+ - name : Run start commands
43
+ run : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
44
44
- name : Setup Java ${{ matrix.java }}
45
45
uses : actions/setup-java@v1
46
46
with :
47
47
java-version : ${{ matrix.java }}
48
48
49
- - uses : aws-actions/configure-aws-credentials@v2
49
+ - uses : aws-actions/configure-aws-credentials@v4
50
50
with :
51
51
role-to-assume : ${{ secrets.ML_ROLE }}
52
52
aws-region : us-west-2
53
53
54
54
- name : Checkout MLCommons
55
- uses : actions/checkout@v3
55
+ uses : actions/checkout@v4
56
56
with :
57
57
ref : ${{ github.event.pull_request.head.sha }}
58
58
74
74
echo "build-test-linux=$plugin" >> $GITHUB_OUTPUT
75
75
76
76
- name : Upload Coverage Report
77
- uses : codecov/codecov-action@v1
77
+ uses : codecov/codecov-action@v4
78
78
with :
79
79
flags : ml-commons
80
80
token : ${{ secrets.CODECOV_TOKEN }}
@@ -98,17 +98,17 @@ jobs:
98
98
runs-on : ubuntu-latest
99
99
100
100
steps :
101
- - uses : aws-actions/configure-aws-credentials@v2
101
+ - uses : aws-actions/configure-aws-credentials@v4
102
102
with :
103
103
role-to-assume : ${{ secrets.ML_ROLE }}
104
104
aws-region : us-west-2
105
105
106
106
- name : Checkout MLCommons
107
- uses : actions/checkout@v3
107
+ uses : actions/checkout@v4
108
108
with :
109
109
ref : ${{ github.event.pull_request.head.sha }}
110
110
111
- - uses : actions/download-artifact@v3
111
+ - uses : actions/download-artifact@v4
112
112
with :
113
113
name : ml-plugin-linux-${{ matrix.java }}
114
114
@@ -173,7 +173,7 @@ jobs:
173
173
fi
174
174
175
175
- name : Upload Coverage Report
176
- uses : codecov/codecov-action@v3
176
+ uses : codecov/codecov-action@v4
177
177
with :
178
178
flags : ml-commons
179
179
token : ${{ secrets.CODECOV_TOKEN }}
@@ -193,14 +193,14 @@ jobs:
193
193
with :
194
194
java-version : ${{ matrix.java }}
195
195
196
- - uses : aws-actions/configure-aws-credentials@v2
196
+ - uses : aws-actions/configure-aws-credentials@v4
197
197
with :
198
198
role-to-assume : ${{ secrets.ML_ROLE }}
199
199
aws-region : us-west-2
200
200
201
201
# ml-commons
202
202
- name : Checkout MLCommons
203
- uses : actions/checkout@v3
203
+ uses : actions/checkout@v4
204
204
with :
205
205
ref : ${{ github.event.pull_request.head.sha }}
206
206
0 commit comments