Skip to content

Commit 71fa17c

Browse files
authored
Merge pull request #5 from dAppCore/dev
chore: promote dev to main (top-down dep tree sweep)
2 parents de25501 + dfd2310 commit 71fa17c

73 files changed

Lines changed: 158 additions & 2188 deletions

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [dev, main]
6+
pull_request:
7+
branches: [dev, main]
8+
9+
permissions:
10+
contents: read
11+
12+
env:
13+
GOFLAGS: -buildvcs=false
14+
GOWORK: "off"
15+
GOPROXY: "direct"
16+
GOSUMDB: "off"
17+
18+
jobs:
19+
test:
20+
name: Test + Coverage
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v5
24+
with:
25+
fetch-depth: 0
26+
- uses: actions/setup-go@v6
27+
with:
28+
go-version: '1.26'
29+
- name: Test with coverage
30+
working-directory: go
31+
run: go test -race -coverprofile=coverage.out -covermode=atomic -count=1 ./...
32+
- name: Upload coverage to Codecov
33+
uses: codecov/codecov-action@v5
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}
36+
files: go/coverage.out
37+
flags: unittests
38+
fail_ci_if_error: false
39+
40+
lint:
41+
name: golangci-lint
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v5
45+
- uses: actions/setup-go@v6
46+
with:
47+
go-version: '1.26'
48+
- uses: golangci/golangci-lint-action@v9
49+
with:
50+
version: latest
51+
working-directory: go
52+
args: --timeout=5m --tests=false
53+
54+
sonarcloud:
55+
name: SonarCloud
56+
runs-on: ubuntu-latest
57+
needs: test
58+
steps:
59+
- uses: actions/checkout@v5
60+
with:
61+
fetch-depth: 0
62+
- uses: actions/setup-go@v6
63+
with:
64+
go-version: '1.26'
65+
- name: Test for coverage
66+
working-directory: go
67+
run: go test -coverprofile=coverage.out -covermode=atomic -count=1 ./...
68+
- name: SonarCloud Scan
69+
uses: SonarSource/sonarqube-scan-action@v6
70+
env:
71+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
72+
with:
73+
args: >
74+
-Dsonar.organization=dappcore
75+
-Dsonar.projectKey=dappcore_go-process
76+
-Dsonar.sources=go
77+
-Dsonar.exclusions=**/vendor/**,**/third_party/**,**/.tmp/**,**/*_test.go
78+
-Dsonar.tests=go
79+
-Dsonar.test.inclusions=**/*_test.go
80+
-Dsonar.go.coverage.reportPaths=go/coverage.out

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "external/go"]
2+
path = external/go
3+
url = https://github.com/dappcore/go.git
4+
branch = dev

.woodpecker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ steps:
1414
GOFLAGS: -buildvcs=false
1515
GOWORK: "off"
1616
commands:
17-
- golangci-lint run --timeout=5m ./...
17+
- cd go && golangci-lint run --timeout=5m ./...
1818

1919
- name: go-test
2020
image: golang:1.26-alpine
@@ -25,7 +25,7 @@ steps:
2525
CGO_ENABLED: "1"
2626
commands:
2727
- apk add --no-cache git build-base
28-
- go test -race -coverprofile=coverage.out -covermode=atomic -count=1 ./...
28+
- cd go && go test -race -coverprofile=coverage.out -covermode=atomic -count=1 ./...
2929
- name: sonar
3030
image: sonarsource/sonar-scanner-cli:latest
3131
depends_on: [go-test]

CLAUDE.md

Lines changed: 33 additions & 1 deletion

README.md

Lines changed: 16 additions & 0 deletions

external/go

Submodule go added at d661b70

go.work

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
go 1.26.2
2+
3+
// Workspace mode for development: pulls fresh code from external/ submodules.
4+
// CI uses GOWORK=off to fall back to go/go.mod tags (reproducible).
5+
6+
use (
7+
./go
8+
./external/go
9+
)

go/AGENTS.md

Lines changed: 1 addition & 0 deletions

go/CLAUDE.md

Lines changed: 1 addition & 0 deletions

go/README.md

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)