Skip to content

Commit

Permalink
refactor: ci
Browse files Browse the repository at this point in the history
Signed-off-by: longyue0521 <[email protected]>
  • Loading branch information
longyue0521 committed Oct 17, 2023
1 parent b277c4d commit 160acec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
go-version: '>=1.21.0'

- name: Unit Test
run: go version && sudo sh ./scripts/cicd/unit-testing.sh
run: go version && which go && sudo sh ./scripts/cicd/unit-testing.sh

- name: Run Integration Test
run: go version && sudo sh ./scripts/cicd/integration-testing.sh
run: go version && which go && sudo sh ./scripts/cicd/integration-testing.sh

- name: Run E2E Test
run: go version && sudo sh ./scripts/cicd/end-to-end-testing.sh
run: go version && which go && sudo sh ./scripts/cicd/end-to-end-testing.sh

- name: Post Coverage
uses: codecov/codecov-action@v3
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ lint:
# 单元测试
.PHONY: ut
ut:
@go version && go test -race -cover -coverprofile=unit.out -failfast -shuffle=on ./...
@go version && which go && go test -race -cover -coverprofile=unit.out -failfast -shuffle=on ./...

# 集成测试
.PHONY: it
it:
@make dev_3rd_down
@make dev_3rd_up
@go version && go test -tags=integration -race -cover -coverprofile=integration.out -failfast -shuffle=on ./...
@go version && which go && go test -tags=integration -race -cover -coverprofile=integration.out -failfast -shuffle=on ./...
@make dev_3rd_down

# 端到端测试
.PHONY: e2e
e2e:
@make dev_3rd_down
@make dev_3rd_up
@go version && go mod tidy && go test -tags=e2e -race -cover -coverprofile=e2e.out -failfast -shuffle=on ./...
@go version && which go && go test -tags=e2e -race -cover -coverprofile=e2e.out -failfast -shuffle=on ./...
@make dev_3rd_down

# 启动本地研发 docker 依赖
Expand Down

0 comments on commit 160acec

Please sign in to comment.