Skip to content

Test with supported logstash versions #20

Test with supported logstash versions

Test with supported logstash versions #20

name: Validate configuration syntax
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: |

Check failure on line 11 in .github/workflows/test_config_syntax.yml

View workflow run for this annotation

GitHub Actions / Validate configuration syntax

Invalid workflow file

The workflow is not valid. .github/workflows/test_config_syntax.yml (Line: 11, Col: 14): Unrecognized named-value: 'logstash-version'. Located at position 1 within expression: logstash-version
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:${{logstash-version}} \
logstash --config.test_and_exit -f /usr/share/logstash/pipeline/50-filter-postfix.conf