Skip to content

Commit

Permalink
Test with supported logstash versions
Browse files Browse the repository at this point in the history
  • Loading branch information
whyscream committed Jul 4, 2024
1 parent fe9f9de commit 0b586ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test_config_syntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ on: [push, workflow_dispatch]
jobs:
test-syntax:
runs-on: ubuntu-latest
strategy:
matrix:
logstash-version: ['8.14.1', '7.17.22']
steps:
- uses: actions/checkout@v4
- run: |
docker run --rm \
--volume ./postfix.grok:/etc/logstash/patterns.d/postfix.grok \
--volume ./50-filter-postfix.conf:/usr/share/logstash/pipeline/50-filter-postfix.conf \
logstash:8.12.0 \
logstash:${{logstash-version}} \
logstash --config.test_and_exit -f /usr/share/logstash/pipeline/50-filter-postfix.conf

0 comments on commit 0b586ff

Please sign in to comment.