Skip to content

Commit

Permalink
add node-versions to elastic ci (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Apr 27, 2024
1 parent 05d3c0b commit a966a7e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/plugins-ci-elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
required: false
default: false
type: boolean
node-versions:
description: 'A JSON array that specifies the Node.js versions on which the job should run.'
required: false
default: '["18", "20", "21"]'
type: string

jobs:
dependency-review:
Expand Down Expand Up @@ -96,11 +101,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 21]
db: ['elasticsearch:8.3.2']
node-version: ${{ fromJson(inputs.node-versions) }}
services:
elasticsearch:
image: ${{ matrix.db }}
image: elasticsearch:8.13.2
ports:
- '9200:9200'
- '9300:9300'
Expand Down

0 comments on commit a966a7e

Please sign in to comment.