From a966a7e2489a1519330cd62ff4105bc8948799d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrg=C3=BCn=20Day=C4=B1o=C4=9Flu?= Date: Sat, 27 Apr 2024 20:35:13 +0200 Subject: [PATCH] add node-versions to elastic ci (#126) --- .github/workflows/plugins-ci-elasticsearch.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/plugins-ci-elasticsearch.yml b/.github/workflows/plugins-ci-elasticsearch.yml index afb019f..328b5c1 100644 --- a/.github/workflows/plugins-ci-elasticsearch.yml +++ b/.github/workflows/plugins-ci-elasticsearch.yml @@ -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: @@ -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'