From 48936efa96ae17295be4e0a71be3294f0ec6aef8 Mon Sep 17 00:00:00 2001 From: Mathieu Deous Date: Mon, 2 May 2022 20:18:23 +0200 Subject: Make application go-install-able and create a docker image --- .github/workflows/test.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to '.github/workflows/test.yml') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f29e422..a3cbc35 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,17 +9,25 @@ on: - master jobs: + test: name: Test runs-on: ubuntu-latest + strategy: + matrix: + go_version: + - '~1.16' + - '~1.17' + - '^1.18' + steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: '^1.17' + go-version: ${{ matrix.go_version }} # apt repos don't have YARA v4.2, install it from git - name: Install YARA @@ -32,4 +40,7 @@ jobs: - name: Run tests run: | - LD_LIBRARY_PATH=/usr/local/lib make tests + make + make tests + env: + LD_LIBRARY_PATH: /usr/local/lib -- cgit v1.3