27
27
strategy :
28
28
matrix :
29
29
java : [11, 17, 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,17 +101,17 @@ 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
108
108
109
109
- name : Checkout MLCommons
110
- uses : actions/checkout@v3
110
+ uses : actions/checkout@v4
111
111
with :
112
112
ref : ${{ github.event.pull_request.head.sha }}
113
113
114
- - uses : actions/download-artifact@v4.1.7
114
+ - uses : actions/download-artifact@v4
115
115
with :
116
116
name : ml-plugin-linux-${{ matrix.java }}
117
117
@@ -176,7 +176,7 @@ jobs:
176
176
fi
177
177
178
178
- name : Upload Coverage Report
179
- uses : codecov/codecov-action@v3
179
+ uses : codecov/codecov-action@v4
180
180
with :
181
181
flags : ml-commons
182
182
token : ${{ secrets.CODECOV_TOKEN }}
@@ -197,14 +197,14 @@ jobs:
197
197
with :
198
198
java-version : ${{ matrix.java }}
199
199
200
- - uses : aws-actions/configure-aws-credentials@v2
200
+ - uses : aws-actions/configure-aws-credentials@v4
201
201
with :
202
202
role-to-assume : ${{ secrets.ML_ROLE }}
203
203
aws-region : us-west-2
204
204
205
205
# ml-commons
206
206
- name : Checkout MLCommons
207
- uses : actions/checkout@v3
207
+ uses : actions/checkout@v4
208
208
with :
209
209
ref : ${{ github.event.pull_request.head.sha }}
210
210
0 commit comments