Skip to content

Commit c13b5da

Browse files
committed
Test with supported logstash versions
1 parent fe9f9de commit c13b5da

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/test_config_syntax.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@ on: [push, workflow_dispatch]
33
jobs:
44
test-syntax:
55
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
logstash-version: ['8.14.1', '7.17.22']
69
steps:
7-
- uses: actions/checkout@v4
8-
- run: |
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
- name: Validate configuration syntax
13+
env:
14+
LOGSTASH_VERSION: ${{matrix.logstash-version}}
15+
run: |
916
docker run --rm \
1017
--volume ./postfix.grok:/etc/logstash/patterns.d/postfix.grok \
1118
--volume ./50-filter-postfix.conf:/usr/share/logstash/pipeline/50-filter-postfix.conf \
12-
logstash:8.12.0 \
19+
logstash:${LOGSTASH_VERSION} \
1320
logstash --config.test_and_exit -f /usr/share/logstash/pipeline/50-filter-postfix.conf

0 commit comments

Comments
 (0)