We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe9f9de commit c13b5daCopy full SHA for c13b5da
.github/workflows/test_config_syntax.yml
@@ -3,11 +3,18 @@ on: [push, workflow_dispatch]
3
jobs:
4
test-syntax:
5
runs-on: ubuntu-latest
6
+ strategy:
7
+ matrix:
8
+ logstash-version: ['8.14.1', '7.17.22']
9
steps:
- - uses: actions/checkout@v4
- - 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: |
16
docker run --rm \
17
--volume ./postfix.grok:/etc/logstash/patterns.d/postfix.grok \
18
--volume ./50-filter-postfix.conf:/usr/share/logstash/pipeline/50-filter-postfix.conf \
- logstash:8.12.0 \
19
+ logstash:${LOGSTASH_VERSION} \
20
logstash --config.test_and_exit -f /usr/share/logstash/pipeline/50-filter-postfix.conf
0 commit comments