Skip to content

Commit

Permalink
Merge pull request #202 from whyscream/better-workflows
Browse files Browse the repository at this point in the history
Better workflows
  • Loading branch information
whyscream authored Jul 4, 2024
2 parents 5dc376a + c13b5da commit 3982b33
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/test_config_syntax.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
name: Validate configuration syntax
on: [push]
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
2 changes: 1 addition & 1 deletion .github/workflows/test_grok_patterns.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Test grok patterns
on: [push]
on: [push, workflow_dispatch]
jobs:
test-patterns:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3982b33

Please sign in to comment.