Skip to content

Commit a3c7d43

Browse files
committed
Test ES 9
1 parent b6f405b commit a3c7d43

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
os: [ubuntu-24.04, ubuntu-24.04-arm, ubuntu-22.04, ubuntu-22.04-arm, ubuntu-20.04, macos-15, macos-14, macos-13, windows-2022, windows-2019]
10-
elasticsearch-version: [8, 7]
9+
os: [ubuntu-24.04] #, ubuntu-24.04-arm, ubuntu-22.04, ubuntu-22.04-arm, ubuntu-20.04, macos-15, macos-14, macos-13, windows-2022, windows-2019]
10+
elasticsearch-version: [9]
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: ./.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Specify a version (defaults to the latest)
2626
elasticsearch-version: 8
2727
```
2828
29-
Supports major versions (`8`, `7`), minor versions (`8.5`, `7.17`, etc), and full versions (`8.5.0`, `7.17.7`, etc)
29+
Supports major versions (`9`, `8`), minor versions (`9.0`, `8.18`, etc), and full versions (`9.0.0`, `8.18.0`, etc)
3030

3131
Test against multiple versions
3232

3333
```yml
3434
strategy:
3535
matrix:
36-
elasticsearch-version: [8, 7]
36+
elasticsearch-version: [9, 8]
3737
steps:
3838
- uses: ankane/setup-elasticsearch@v1
3939
with:

index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const path = require('path');
55
const process = require('process');
66

77
const versionMap = {
8-
'8': '8.17.4',
8+
'9': '9.0.0',
9+
'8': '8.18.0',
910
'7': '7.17.28',
11+
'9.0': '9.0.0',
12+
'8.18': '8.18.0',
1013
'8.17': '8.17.4',
1114
'8.16': '8.16.6',
1215
'8.15': '8.15.5',
@@ -65,11 +68,11 @@ function addToPath(value) {
6568
}
6669

6770
function getVersion() {
68-
let version = process.env['INPUT_ELASTICSEARCH-VERSION'] || '8';
71+
let version = process.env['INPUT_ELASTICSEARCH-VERSION'] || '9';
6972
if (versionMap[version]) {
7073
version = versionMap[version];
7174
}
72-
if (!/^[78]\.\d{1,2}\.\d{1,2}$/.test(version)) {
75+
if (!/^[789]\.\d{1,2}\.\d{1,2}$/.test(version)) {
7376
throw `Elasticsearch version not supported: ${version}`;
7477
}
7578
return version;

0 commit comments

Comments
 (0)