diff options
Diffstat (limited to '.github/workflows/test.yml')
| -rw-r--r-- | .github/workflows/test.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..583b794 --- /dev/null +++ b/.github/workflows/test.yml | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | name: Test | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | pull_request: | ||
| 6 | branches: | ||
| 7 | - master | ||
| 8 | |||
| 9 | jobs: | ||
| 10 | test: | ||
| 11 | name: Test | ||
| 12 | runs-on: ubuntu-latest | ||
| 13 | steps: | ||
| 14 | - uses: actions/checkout@v2 | ||
| 15 | |||
| 16 | - name: Install apt dependencies | ||
| 17 | run: | | ||
| 18 | apt-get update | ||
| 19 | apt-get install -y devscripts fakeroot debhelper | ||
| 20 | |||
| 21 | - name: Install YARA | ||
| 22 | run: | | ||
| 23 | git clone --depth 1 https://github.com/plusvic/yara.git yara3 | ||
| 24 | cd yara3 | ||
| 25 | bash ./build.sh | ||
| 26 | ./configure | ||
| 27 | make | ||
| 28 | cp ./yara ../php-malware-finder/ | ||
| 29 | cd .. | ||
| 30 | |||
| 31 | - name: Run tests | ||
| 32 | run: make tests | ||
| 33 | |||
| 34 | - name: Build debian package | ||
| 35 | run: make deb | ||
