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