♻️ refactor: split src into internal packages and cmd

This commit is contained in:
2026-07-16 23:51:39 +07:00
parent 2e320b03f3
commit a05d6bb7eb
28 changed files with 1355 additions and 1328 deletions
+4 -6
View File
@@ -21,10 +21,10 @@ jobs:
go-version-file: go.mod
- name: Format check
run: test -z "$(gofmt -l src)"
run: test -z "$(gofmt -l .)"
- name: Vet
run: go vet ./src/
run: go vet ./...
- name: Staticcheck
uses: dominikh/staticcheck-action@v1
@@ -33,14 +33,12 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v7
with:
working-directory: src
- name: Build
run: go build -o trollssh ./src
run: go build -o trollssh ./cmd/trollssh
- name: Unit tests
run: go test -race ./src/
run: go test -race ./...
docker:
needs: test