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 c13b5da
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/test_config_syntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ 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: |
- name: Checkout code
uses: actions/checkout@v4
- name: Validate configuration syntax
env:
LOGSTASH_VERSION: ${{matrix.logstash-version}}
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 c13b5da

Please sign in to comment.