diff options
| author | Mathieu Deous | 2022-05-02 20:18:23 +0200 |
|---|---|---|
| committer | GitHub | 2022-05-02 20:18:23 +0200 |
| commit | 48936efa96ae17295be4e0a71be3294f0ec6aef8 (patch) | |
| tree | f4e69551f1368aa048edf46b7b061600f3668329 /.github/workflows/test.yml | |
| parent | bbc738e16f8b637afde58d65196374af98a5e0e2 (diff) | |
Make application go-install-able and create a docker image
Diffstat (limited to '.github/workflows/test.yml')
| -rw-r--r-- | .github/workflows/test.yml | 19 |
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 | ||
| 11 | jobs: | 11 | jobs: |
| 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 | ||
