-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (34 loc) · 1.02 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Test action
on: [push, pull_request]
jobs:
clamd_macos:
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Start ClamAV daemon
uses: ./
- name: Ping clamd on TCP port 3310
run: echo PING | nc localhost 3310
- name: Ping clamd using the Unix socket
run: echo PING | nc -U /tmp/clamd.socket
clamd_ubuntu:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Start ClamAV daemon
uses: ./
- name: Ping clamd on TCP port 3310
run: echo PING | nc localhost 3310
- name: Ping clamd using the Unix socket
run: echo PING | nc -U /tmp/clamd.socket
clamd_windows:
runs-on: windows-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Start ClamAV daemon
uses: ./
- name: Test the connection to clamd on TCP port 3310
run: Test-NetConnection -ComputerName localhost -Port 3310