Skip to content

Commit 3982b33

Browse files
authored
Merge pull request #202 from whyscream/better-workflows
Better workflows
2 parents 5dc376a + c13b5da commit 3982b33

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
name: Validate configuration syntax
2-
on: [push]
2+
on: [push, workflow_dispatch]
33
jobs:
44
test-syntax:
55
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
logstash-version: ['8.14.1', '7.17.22']
69
steps:
7-
- uses: actions/checkout@v4
8-
- run: |
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
- name: Validate configuration syntax
13+
env:
14+
LOGSTASH_VERSION: ${{matrix.logstash-version}}
15+
run: |
916
docker run --rm \
1017
--volume ./postfix.grok:/etc/logstash/patterns.d/postfix.grok \
1118
--volume ./50-filter-postfix.conf:/usr/share/logstash/pipeline/50-filter-postfix.conf \
12-
logstash:8.12.0 \
19+
logstash:${LOGSTASH_VERSION} \
1320
logstash --config.test_and_exit -f /usr/share/logstash/pipeline/50-filter-postfix.conf

.github/workflows/test_grok_patterns.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Test grok patterns
2-
on: [push]
2+
on: [push, workflow_dispatch]
33
jobs:
44
test-patterns:
55
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)