Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/tests export-ignore
/.github export-ignore
/.gitignore export-ignore
/phpunit.xml.dist export-ignore
26 changes: 20 additions & 6 deletions .github/workflows/code_style_and_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
static_code_analysis:
runs-on: 'ubuntu-22.04'
runs-on: 'ubuntu-24.04'
name: 'Static code analysis'
steps:
- name: 'Setup PHP'
Expand All @@ -38,7 +38,7 @@ jobs:

phpunit:
needs: [ static_code_analysis ]
runs-on: 'ubuntu-22.04'
runs-on: 'ubuntu-24.04'
name: 'PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}'
timeout-minutes: 30
continue-on-error: true
Expand Down Expand Up @@ -100,7 +100,21 @@ jobs:
vendor/bin/phpunit --coverage-clover=tests/build/clover.xml 2>/dev/null

- name: 'Upload coverage results to Coveralls'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: |
vendor/bin/php-coveralls --coverage_clover=tests/build/clover.xml --json_path=tests/build/coveralls.json -v
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: tests/build/clover.xml
format: clover
parallel: true
flag-name: php-${{ matrix.php }}-symf-${{ matrix.symfony }}

finalize:
needs: [phpunit]
runs-on: ubuntu-24.04
if: ${{ always() }}
steps:
- name: Finalize Coveralls Parallel Build
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
This library is a PHP client for working with a ClamAV daemon. It also provides optional Symfony integration.

![Workflow status](https://github.com/sineflow/clamav/actions/workflows/code_style_and_tests.yml/badge.svg)
[![Workflow status](https://github.com/sineflow/clamav/actions/workflows/code_style_and_tests.yml/badge.svg)](https://github.com/sineflow/clamav/actions/workflows/code_style_and_tests.yml)

# Requirements:

Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/ScannerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function validFilesToCheckProvider()
return [
[realpath(__DIR__.'/../Files/clean.txt'), false, ''],
[realpath(__DIR__.'/../Files/eicar.txt'), true, 'Win.Test.EICAR_HDB-1'],
[realpath(__DIR__.'/../Files/eicar-dropper.pdf'), true, 'Doc.Dropper.Agent-1540415'],
[realpath(__DIR__.'/../Files/eicar-dropper.pdf'), true, 'Pdf.Dropper.Agent-6299400-0'],
[realpath(__DIR__.'/../Files/infected-archive.zip'), true, 'Win.Test.EICAR_HDB-1'],
];
}
Expand Down