From 0b586fff62ecb5189b8836a0e83ed128cdd73639 Mon Sep 17 00:00:00 2001 From: Tom Hendrikx Date: Fri, 5 Jul 2024 00:19:36 +0200 Subject: [PATCH] Test with supported logstash versions --- .github/workflows/test_config_syntax.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_config_syntax.yml b/.github/workflows/test_config_syntax.yml index f5e8621..eb5cd86 100644 --- a/.github/workflows/test_config_syntax.yml +++ b/.github/workflows/test_config_syntax.yml @@ -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