From ca20eb1d75f6f7ed346a83fc13d13f711c81a21e Mon Sep 17 00:00:00 2001 From: Mathieu Deous Date: Mon, 1 Nov 2021 18:36:51 +0100 Subject: try to migrate to github actions --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test.yml (limited to '.github/workflows') 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 @@ +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 -- cgit v1.3