Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better workflows #202

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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