summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml19
1 files changed, 15 insertions, 4 deletions
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:
9 - master 9 - master
10 10
11jobs: 11jobs:
12
12 test: 13 test:
13 name: Test 14 name: Test
14 runs-on: ubuntu-latest 15 runs-on: ubuntu-latest
16 strategy:
17 matrix:
18 go_version:
19 - '~1.16'
20 - '~1.17'
21 - '^1.18'
22
15 steps: 23 steps:
16 - name: Checkout code 24 - name: Checkout code
17 uses: actions/checkout@v2 25 uses: actions/checkout@v3
18 26
19 - name: Setup Go 27 - name: Setup Go
20 uses: actions/setup-go@v2 28 uses: actions/setup-go@v3
21 with: 29 with:
22 go-version: '^1.17' 30 go-version: ${{ matrix.go_version }}
23 31
24 # apt repos don't have YARA v4.2, install it from git 32 # apt repos don't have YARA v4.2, install it from git
25 - name: Install YARA 33 - name: Install YARA
@@ -32,4 +40,7 @@ jobs:
32 40
33 - name: Run tests 41 - name: Run tests
34 run: | 42 run: |
35 LD_LIBRARY_PATH=/usr/local/lib make tests 43 make
44 make tests
45 env:
46 LD_LIBRARY_PATH: /usr/local/lib