-
Notifications
You must be signed in to change notification settings - Fork 5
67 lines (64 loc) · 1.67 KB
/
static.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Run static tests
on:
pull_request:
workflow_dispatch:
env:
GO_VERSION: '1.22'
jobs:
static-validation:
services:
nats:
image: darkweak/nats
ports:
- 4222:4222
- 6222:6222
- 8222:8222
redis:
image: redis
ports:
- 6379:6379
etcd:
image: quay.io/coreos/etcd:v3.5.13
env:
ETCD_NAME: etcd0
ETCD_ADVERTISE_CLIENT_URLS: http://etcd:2379,http://etcd:4001
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379,http://0.0.0.0:4001
ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd:2380
ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
ETCD_INITIAL_CLUSTER_TOKEN: etcd-cluster-1
ETCD_INITIAL_CLUSTER: etcd0=http://etcd:2380
ETCD_INITIAL_CLUSTER_STATE: new
ports:
- 2379:2379
- 2380:2380
- 4001:4001
strategy:
matrix:
submodules:
- badger
- core
- etcd
- go-redis
- nats
- nuts
- otter
- redis
- simplefs
name: Validate quality
runs-on: ubuntu-latest
steps:
- name: Add etcd host to /etc/hosts
run: |
sudo echo "127.0.0.1 etcd" | sudo tee -a /etc/hosts
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
working-directory: ${{ matrix.submodules }}
- name: unit tests
run: go test -v -race ./${{ matrix.submodules }}