Skip to content

Commit b7ce890

Browse files
committed
replacement to v1.0.0
1 parent afddf54 commit b7ce890

File tree

418 files changed

+5522
-86996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

418 files changed

+5522
-86996
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,48 @@ on:
44
branches:
55
- main
66
pull_request:
7-
branches:
8-
- main
7+
8+
env:
9+
LD_LIBRARY_PATH: /home/runner/work/ksot/ksot/nb-server/lib
910

1011
jobs:
1112
goreleaser:
1213
runs-on: ubuntu-latest
1314
env:
14-
GO_VERSION: 1.18
15-
IMAGE_REGISTRY: ghcr.io/nttcom/kuesta
15+
GO_VERSION: 1.21
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v3
1919
with:
2020
fetch-depth: 0
21+
submodules: recursive
22+
23+
- name: bulid libyang
24+
run: |
25+
cd nb-server/libyang
26+
mkdir build; cd build
27+
echo "/home/runner/work/ksot/ksot/nb-server/bin" >> $GITHUB_PATH
28+
cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/runner/work/ksot/ksot/nb-server ..
29+
make
30+
make install
2131
2232
- name: Setup Go
2333
uses: actions/setup-go@v3
2434
with:
2535
go-version: ${{ env.GO_VERSION }}
2636

27-
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@v2
29-
with:
30-
languages: go
37+
- name: Test nb-server
38+
run: |
39+
cd nb-server
40+
go test ./...
41+
42+
- name: Test github-server
43+
run: |
44+
cd github-server
45+
go test ./...
3146
3247
- name: Run GoReleaser
3348
uses: goreleaser/goreleaser-action@v4
3449
with:
3550
version: latest
36-
args: release --snapshot --rm-dist
37-
38-
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@v2
40-
with:
41-
category: "/language:go"
51+
args: release --snapshot --clean

.github/workflows/golangci-lint.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,17 @@ jobs:
1616
steps:
1717
- uses: actions/setup-go@v3
1818
with:
19-
go-version: 1.18
19+
go-version: 1.21
2020
- uses: actions/checkout@v3
21-
- name: golangci-lint-kuesta
21+
- name: golangci-lint-nb-server
2222
uses: golangci/golangci-lint-action@v3
2323
with:
2424
version: latest
25-
working-directory: .
25+
working-directory: ./nb-server
2626
args: --timeout 3m0s
27-
- name: golangci-lint-provisioner
27+
- name: golangci-lint-github-server
2828
uses: golangci/golangci-lint-action@v3
2929
with:
3030
version: latest
31-
working-directory: ./provisioner
32-
args: --timeout 3m0s
33-
- name: golangci-lint-device-operator
34-
uses: golangci/golangci-lint-action@v3
35-
with:
36-
version: latest
37-
working-directory: ./device-operator
38-
args: --timeout 3m0s
39-
- name: golangci-lint-device-subscriber
40-
uses: golangci/golangci-lint-action@v3
41-
with:
42-
version: latest
43-
working-directory: ./device-subscriber
44-
args: --timeout 3m0s
31+
working-directory: ./github-server
32+
args: --timeout 3m0s

.github/workflows/release.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
*.dll
55
*.so
66
*.dylib
7+
*.sh
78

89
# Test binary, built with `go test -c`
910
*.test
11+
*.DS_Store
1012

1113
# Output of the go coverage tool, specifically when used with LiteIDE
1214
*.out
@@ -20,7 +22,15 @@ cover.html
2022

2123
# Binary dependencies
2224
bin
25+
env
2326

2427
# Environment variables
2528
.env*
2629
dist/
30+
31+
# other
32+
sb-server/__pycache__
33+
sb-server/devices/
34+
sb-server/connect.json
35+
sb-server/.DS_Store
36+
nb-server/pkg/tf/yang

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "nb-server/libyang"]
2+
path = nb-server/libyang
3+
url = [email protected]:CESNET/libyang.git

.golangci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ linters:
1717
- unconvert
1818
- whitespace
1919
linters-settings:
20+
gosec:
21+
excludes:
22+
- G204
2023
gocognit:
21-
min-complexity: 20
24+
min-complexity: 40
25+
nestif:
26+
min-complexity: 40
2227
exhaustive:
2328
default-signifies-exhaustive: true
2429
issues:
@@ -32,4 +37,6 @@ issues:
3237
- gosec
3338
run:
3439
skip-files:
35-
- generated.go
40+
- generated.go
41+
skip-dirs:
42+
- xml

0 commit comments

Comments
 (0)