Skip to content

Commit

Permalink
chore: 更新依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
foliet committed May 21, 2023
1 parent 60d591e commit ea38f41
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 970 deletions.
12 changes: 0 additions & 12 deletions .deepsource.toml

This file was deleted.

26 changes: 10 additions & 16 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
name: CI
name: Static Analysis
on:
push:
branches: [ "main" ]
branches: [ "*" ]
tags: [ "v*.*.*" ]
pull_request:
branches: [ "main" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
branches: [ "*" ]

jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- linux-amd64-fmt
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- name: Checkout branch
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: "1.18.6"
- name: golangci-lint
go-version: stable
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.49.0
args: --timeout 5m0s
- name: go test
run: go test ./...
version: latest
24 changes: 24 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Unit Test
on:
push:
branches: [ "*" ]
tags: [ "v*.*.*" ]
pull_request:
branches: [ "*" ]

jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- linux-amd64-fmt
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: stable
- name: Unit test
run: go test -gcflags=all=-l -coverprofile=cover.out ./...
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.idea/
/etc/*
!/etc/system.yaml
etc
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ ADD go.mod .
ADD go.sum .
RUN go mod download
COPY . .
COPY ./etc /app/etc
RUN go build -ldflags="-s -w" -o /app/system-rpc .


Expand All @@ -26,6 +25,5 @@ ENV TZ Asia/Shanghai

WORKDIR /app
COPY --from=builder /app/system-rpc /app/system-rpc
COPY --from=builder /app/etc /app/etc

CMD ["./system-rpc", "-f", "etc/system.yaml"]
39 changes: 0 additions & 39 deletions etc/system.yaml

This file was deleted.

7 changes: 4 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ go 1.18
require (
github.com/bytedance/mockey v1.1.1
github.com/smartystreets/goconvey v1.6.4
github.com/zeromicro/go-zero v1.4.3
go.mongodb.org/mongo-driver v1.11.1
google.golang.org/grpc v1.53.0
github.com/zeromicro/go-zero v1.5.2
go.mongodb.org/mongo-driver v1.11.4
google.golang.org/grpc v1.54.0
google.golang.org/protobuf v1.30.0
)

Expand Down Expand Up @@ -72,6 +72,7 @@ require (
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.14.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.14.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.14.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.14.0 // indirect
go.opentelemetry.io/otel/exporters/zipkin v1.14.0 // indirect
go.opentelemetry.io/otel/sdk v1.14.0 // indirect
go.opentelemetry.io/otel/trace v1.14.0 // indirect
Expand Down
906 changes: 10 additions & 896 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit ea38f41

Please sign in to comment.