diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4dfadc8..f406612 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,9 @@ jobs: uses: actions/checkout@v4 - name: Start ClamAV daemon uses: ./ + with: + db_main: true + db_daily: true - name: Ping clamd on TCP port 3310 run: echo PING | nc localhost 3310 - name: Ping clamd using the Unix socket diff --git a/action.yml b/action.yml index e38f57e..93ca3a3 100644 --- a/action.yml +++ b/action.yml @@ -57,7 +57,9 @@ runs: shell: bash run: | brew install clamav - freshclam -F --config-file=freshclam.conf --update-db=bytecode + freshclam -F --config-file=freshclam.conf --update-db=bytecode \ + $([ ${{ inputs.db_main }} = true ] && echo "--update-db=main") \ + $([ ${{ inputs.db_daily }} = true ] && echo "--update-db=daily") clamd --config-file=clamd.conf # Linux - name: Install and start ClamAV daemon on Linux