mirror of
https://github.com/stoatchat/rust-clamav-client.git
synced 2026-07-01 21:24:06 -04:00
22 lines
558 B
YAML
22 lines
558 B
YAML
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
|