-
Notifications
You must be signed in to change notification settings - Fork 2
85 lines (65 loc) · 1.67 KB
/
ci.yml
File metadata and controls
85 lines (65 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: node-es-transformer CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
checks:
runs-on: ubuntu-latest
name: Lint & Type Check
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Node.js 22.x
uses: actions/setup-node@v6
with:
node-version: '22.x'
- name: Install dependencies
run: yarn
- name: Lint
run: yarn lint
- name: Type check
run: yarn test:types
test-single-version:
runs-on: ubuntu-latest
needs: checks
strategy:
matrix:
es-version: ['8.17.0', '8.19.11', '9.0.0', '9.3.0']
fail-fast: false
name: Node 22.x / ES ${{ matrix.es-version }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Node.js 22.x
uses: actions/setup-node@v6
with:
node-version: '22.x'
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Run tests against Elasticsearch ${{ matrix.es-version }}
run: yarn test
env:
ES_VERSION: ${{ matrix.es-version }}
test-cross-version:
runs-on: ubuntu-latest
needs: checks
name: Node 22.x / Cross-Version (ES 8.x → 9.x)
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Node.js 22.x
uses: actions/setup-node@v6
with:
node-version: '22.x'
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Run cross-version tests (ES 8.17.0 → 9.3.0)
run: yarn test:cross-version