Add run tests workflow

This commit is contained in:
Thorsten Blum
2021-05-22 21:43:39 +02:00
parent c8a218b1b7
commit 6a78451e58
2 changed files with 23 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
LocalSocket /tmp/clamd.socket
TCPSocket 3310
+21
View File
@@ -0,0 +1,21 @@
name: Run tests
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Install ClamAV daemon
run: sudo apt-get install clamav-daemon
- name: Update ClamAV virus databases
run: |
sudo systemctl stop clamav-freshclam
sudo freshclam
- name: Start clamd
run: clamd --config-file=.github/clamd.conf
- name: Run tests
run: cargo test
- name: Shutdown clamd
run: echo SHUTDOWN | nc localhost 3310