Skip to content

Commit eed8029

Browse files
committed
refactor: flatten project structure, remove backend/ directory
Move all Go code from backend/ to repo root since there is no separate frontend. Update module path from github.com/ukeeper/ukeeper-readability/backend to github.com/ukeeper/ukeeper-readability. Remove redundant test execution from Dockerfile (CI build job handles testing). Add CLAUDE.md.
1 parent 226d095 commit eed8029

3,067 files changed

Lines changed: 69 additions & 45 deletions

File tree

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: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
- name: set up go
2323
uses: actions/setup-go@v6
2424
with:
25-
cache-dependency-path: backend
2625
go-version: "1.25"
2726
id: go
2827

@@ -32,7 +31,6 @@ jobs:
3231
mongoDBVersion: "5.0"
3332

3433
- name: build and test
35-
working-directory: backend
3634
run: |
3735
go test -timeout=60s -race -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov ./...
3836
go build -race
@@ -44,13 +42,11 @@ jobs:
4442
uses: golangci/golangci-lint-action@v9
4543
with:
4644
version: "latest"
47-
working-directory: backend
4845

4946
- name: submit coverage
5047
run: |
5148
go install github.com/mattn/goveralls@latest
5249
goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov
53-
working-directory: backend
5450
env:
5551
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5652

File renamed without changes.

CLAUDE.md

Lines changed: 53 additions & 0 deletions

Dockerfile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,9 @@ ARG CI
55
ARG GITHUB_REF
66
ARG GITHUB_SHA
77
ARG GIT_BRANCH
8-
ARG SKIP_TEST
98

109
ADD . /build
11-
WORKDIR /build/backend
12-
13-
# run tests and linters
14-
RUN \
15-
if [ -z "$SKIP_TEST" ] ; then \
16-
go test -timeout=30s ./... && \
17-
golangci-lint run ; \
18-
else echo "skip tests and linter" ; fi
10+
WORKDIR /build
1911

2012
RUN \
2113
version="$(/script/version.sh)" && \
@@ -31,8 +23,8 @@ LABEL org.opencontainers.image.source="https://github.com/ukeeper/ukeeper-readab
3123

3224
RUN apk add --update ca-certificates && update-ca-certificates
3325

34-
COPY --from=build-backend /build/backend/ukeeper-readability /srv/
35-
ADD ./backend/web /srv/web
26+
COPY --from=build-backend /build/ukeeper-readability /srv/
27+
ADD ./web /srv/web
3628

3729
RUN chown -R app:app /srv
3830
USER app

docker-compose.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,3 @@ services:
4141
volumes:
4242
- /tmp/mongodb:/data/db
4343

44-
# uncomment the lines below to have mongodb ready for tests,
45-
# then start them by running
46-
# `ENABLE_MONGO_TESTS=true go test ./...`
47-
# mongo-tests:
48-
# image: mongo:5.0
49-
# logging:
50-
# driver: json-file
51-
# options:
52-
# max-size: "20m"
53-
# max-file: "5"
54-
# hostname: mongo-tests
55-
# restart: always
56-
# container_name: ureadability-mongo-tests
57-
# ports:
58-
# - "27017:27017"
59-
# environment:
60-
# - MONGO_INITDB_DATABASE=admin
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)