Merge pull request #23 from wpoely86/httpd #59
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: test logstash patterns | |
on: [push, pull_request] | |
jobs: | |
test_patterns: | |
runs-on: ubuntu-latest | |
steps: | |
- name: add logstash repo | |
uses: myci-actions/add-deb-repo@master | |
with: | |
repo: deb https://artifacts.elastic.co/packages/8.x/apt stable main | |
repo-name: elastic-8.x | |
keys-asc: https://artifacts.elastic.co/GPG-KEY-elasticsearch | |
- name: install logstash | |
run: sudo apt-get install logstash | |
- name: add logstash to path | |
run: echo "/usr/share/logstash/bin" >> $GITHUB_PATH | |
- name: fix directory permissions of logstash data directory | |
run: sudo chmod 777 /usr/share/logstash/data | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox tox-gh-actions | |
- name: run tests | |
run: tox -v -c tox.ini |