summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMathieu Deous2022-04-15 22:02:16 +0200
committerGitHub2022-04-15 22:02:16 +0200
commit61126b35771eaa7537757362f264dbc8b6a32ed7 (patch)
tree9732a52f1c39c8ae3d8a1a35e8cd9e45d7f2cfea /.github/workflows
parent98fb222eb0a878df2abb6b13386a5ebc46b835c3 (diff)
Rewrite shell script in Go
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml35
1 files changed, 35 insertions, 0 deletions
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 @@
1name: Test Suite
2
3on:
4 push:
5 branches:
6 - master
7 pull_request:
8 branches:
9 - master
10
11jobs:
12 test:
13 name: Test
14 runs-on: ubuntu-latest
15 steps:
16 - name: Checkout code
17 uses: actions/checkout@v2
18
19 - name: Setup Go
20 uses: actions/setup-go@v2
21 with:
22 go-version: '^1.17'
23
24 # apt repos don't have YARA v4.2, install it from git
25 - name: Install YARA
26 run: |
27 git clone --depth 1 https://github.com/virustotal/yara.git
28 cd yara
29 bash ./build.sh
30 sudo make install
31 cd ..
32
33 - name: Run tests
34 run: |
35 LD_LIBRARY_PATH=/usr/local/lib make tests