File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 11name : Validate configuration syntax
2- on : [push]
2+ on : [push, workflow_dispatch ]
33jobs :
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
Original file line number Diff line number Diff line change 11name : Test grok patterns
2- on : [push]
2+ on : [push, workflow_dispatch ]
33jobs :
44 test-patterns :
55 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments