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 1
1
name : Validate configuration syntax
2
- on : [push]
2
+ on : [push, workflow_dispatch ]
3
3
jobs :
4
4
test-syntax :
5
5
runs-on : ubuntu-latest
6
+ strategy :
7
+ matrix :
8
+ logstash-version : ['8.14.1', '7.17.22']
6
9
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 : |
9
16
docker run --rm \
10
17
--volume ./postfix.grok:/etc/logstash/patterns.d/postfix.grok \
11
18
--volume ./50-filter-postfix.conf:/usr/share/logstash/pipeline/50-filter-postfix.conf \
12
- logstash:8.12.0 \
19
+ logstash:${LOGSTASH_VERSION} \
13
20
logstash --config.test_and_exit -f /usr/share/logstash/pipeline/50-filter-postfix.conf
Original file line number Diff line number Diff line change 1
1
name : Test grok patterns
2
- on : [push]
2
+ on : [push, workflow_dispatch ]
3
3
jobs :
4
4
test-patterns :
5
5
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments