Skip to content

Commit a966a7e

Browse files
authored
add node-versions to elastic ci (#126)
1 parent 05d3c0b commit a966a7e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Diff for: .github/workflows/plugins-ci-elasticsearch.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
required: false
2424
default: false
2525
type: boolean
26+
node-versions:
27+
description: 'A JSON array that specifies the Node.js versions on which the job should run.'
28+
required: false
29+
default: '["18", "20", "21"]'
30+
type: string
2631

2732
jobs:
2833
dependency-review:
@@ -96,11 +101,10 @@ jobs:
96101
runs-on: ubuntu-latest
97102
strategy:
98103
matrix:
99-
node-version: [18, 20, 21]
100-
db: ['elasticsearch:8.3.2']
104+
node-version: ${{ fromJson(inputs.node-versions) }}
101105
services:
102106
elasticsearch:
103-
image: ${{ matrix.db }}
107+
image: elasticsearch:8.13.2
104108
ports:
105109
- '9200:9200'
106110
- '9300:9300'

0 commit comments

Comments
 (0)