summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
blob: 583b79424c468caecba13c5ca14d87fe1f8f1482 (plain)
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

on:
  push:
  pull_request:
    branches:
      - master

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Install apt dependencies
        run: |
          apt-get update
          apt-get  install -y devscripts fakeroot debhelper

      - name: Install YARA
        run: |
          git clone --depth 1 https://github.com/plusvic/yara.git yara3
          cd yara3
          bash ./build.sh
          ./configure
          make
          cp ./yara ../php-malware-finder/
          cd ..

      - name: Run tests
        run: make tests

      - name: Build debian package
        run: make deb