From 61126b35771eaa7537757362f264dbc8b6a32ed7 Mon Sep 17 00:00:00 2001 From: Mathieu Deous Date: Fri, 15 Apr 2022 22:02:16 +0200 Subject: Rewrite shell script in Go --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test.yml (limited to '.github') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f29e422 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: Test Suite + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '^1.17' + + # apt repos don't have YARA v4.2, install it from git + - name: Install YARA + run: | + git clone --depth 1 https://github.com/virustotal/yara.git + cd yara + bash ./build.sh + sudo make install + cd .. + + - name: Run tests + run: | + LD_LIBRARY_PATH=/usr/local/lib make tests -- cgit v1.3