-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 901 Bytes
/
test.yaml
File metadata and controls
41 lines (35 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Tests and Coverage
on: [push]
jobs:
daemons:
name: Running Daemon Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.25
uses: actions/setup-go@v6
with:
go-version: 1.25
id: go
- name: Checkout code into the Go module directory
uses: actions/checkout@v6
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
working-directory: ${{ matrix.dir }}
args: --config=.golangci.yml
- name: Prepare dependencies
run: |
sudo apt-get update
sudo apt-get install -y libjansson-dev libhiredis-dev
- name: Get dependencies
run: |
cd pkg
make getdeps
env:
GO111MODULE: on
- name: Run tests
run: |
cd pkg
make test
env:
GO111MODULE: on