Skip to content

Commit

Permalink
replacement to v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsuki3939 committed Jul 24, 2024
1 parent afddf54 commit c5b39f9
Show file tree
Hide file tree
Showing 419 changed files with 5,620 additions and 86,996 deletions.
31 changes: 0 additions & 31 deletions .github/dependabot.yml

This file was deleted.

38 changes: 24 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,48 @@ on:
branches:
- main
pull_request:
branches:
- main

env:
LD_LIBRARY_PATH: /home/runner/work/ksot/ksot/nb-server/lib

jobs:
goreleaser:
runs-on: ubuntu-latest
env:
GO_VERSION: 1.18
IMAGE_REGISTRY: ghcr.io/nttcom/kuesta
GO_VERSION: 1.21
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive

- name: bulid libyang
run: |
cd nb-server/libyang
mkdir build; cd build
echo "/home/runner/work/ksot/ksot/nb-server/bin" >> $GITHUB_PATH
cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/runner/work/ksot/ksot/nb-server ..
make
make install
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: go
- name: Test nb-server
run: |
cd nb-server
go test ./...
- name: Test github-server
run: |
cd github-server
go test ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --snapshot --rm-dist

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:go"
args: release --snapshot --clean
24 changes: 6 additions & 18 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,17 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.21
- uses: actions/checkout@v3
- name: golangci-lint-kuesta
- name: golangci-lint-nb-server
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: .
working-directory: ./nb-server
args: --timeout 3m0s
- name: golangci-lint-provisioner
- name: golangci-lint-github-server
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: ./provisioner
args: --timeout 3m0s
- name: golangci-lint-device-operator
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: ./device-operator
args: --timeout 3m0s
- name: golangci-lint-device-subscriber
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: ./device-subscriber
args: --timeout 3m0s
working-directory: ./github-server
args: --timeout 3m0s
37 changes: 0 additions & 37 deletions .github/workflows/release.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/test.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
*.dll
*.so
*.dylib
*.sh

# Test binary, built with `go test -c`
*.test
*.DS_Store

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

# Binary dependencies
bin
env

# Environment variables
.env*
dist/

# other
sb-server/__pycache__
sb-server/devices/
sb-server/connect.json
sb-server/.DS_Store
nb-server/pkg/tf/yang
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "nb-server/libyang"]
path = nb-server/libyang
url = git@github.com:CESNET/libyang.git
11 changes: 9 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ linters:
- unconvert
- whitespace
linters-settings:
gosec:
excludes:
- G204
gocognit:
min-complexity: 20
min-complexity: 40
nestif:
min-complexity: 40
exhaustive:
default-signifies-exhaustive: true
issues:
Expand All @@ -32,4 +37,6 @@ issues:
- gosec
run:
skip-files:
- generated.go
- generated.go
skip-dirs:
- xml
Loading

0 comments on commit c5b39f9

Please sign in to comment.