forked from limitd/limitdb
-
Notifications
You must be signed in to change notification settings - Fork 12
81 lines (74 loc) · 2.27 KB
/
ci.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
env:
CI: true
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x]
kernel: [6.5]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential linux-headers-$(uname -r) wget unzip libelf-dev
- name: Configure kernel sources
run: |
wget https://github.com/veithen/knetstat/archive/refs/heads/master.zip
unzip master.zip
cd knetstat-master
wget https://cl.archive.ubuntu.com/ubuntu/pool/main/l/linux-azure-6.5/linux-azure-6.5_6.5.0.orig.tar.gz && tar xvzf linux-azure-6.5_6.5.0.orig.tar.gz
cp /boot/config-$(uname -r) linux-${{ matrix.kernel }}/.config
make -C linux-${{ matrix.kernel }} clean
yes "" | make -C linux-${{ matrix.kernel }} oldconfig
make -C linux-${{ matrix.kernel }} modules_prepare
sed -i '/Module.symvers/d' ./Makefile
make KBUILD_MODPOST_WARN=1 KSRC=linux-${{ matrix.kernel }}
sudo insmod knetstat.ko
sudo lsmod | grep knetstat
- name: dmesg
run: dmesg
- name: run knetstat
run: cat /proc/net/tcpstat
# - name: Install node
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version }}
#
# - name: install redis-cli
# run: sudo apt-get install redis-tools
#
#
# - name: Install dependencies
# run: npm install
#
# - name: Setup Standalone Tests
# run: make test-standalone-setup
#
# - name: Run Standalone tests
# run: make test-standalone
#
# - name: Teardown Standalone Tests
# run: make test-standalone-teardown
#
# - name: Setup Clustered Tests
# run: make test-cluster-setup
#
# - name: Check Redis Cluster
# run: timeout 60 bash <<< "until redis-cli -c -p 16371 cluster info | grep 'cluster_state:ok'; do sleep 1; done"
#
# - name: Run Clustered tests
# run: make test-cluster
#
# - name: Teardown Clustered Tests
# run: make test-cluster-teardown