Test with supported logstash versions #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Validate configuration syntaxInvalid workflow file
|
||
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 |