Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement: add test cases #227

Merged
merged 2 commits into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ut test
run: make gotest
- name: test importer
run: docker-compose up --exit-code-from importer
timeout-minutes: 20
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
err/
vendor/
nebula-importer
coverage.*

# IDE
.vscode/
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@ test:
docker-compose up --exit-code-from importer; \
docker-compose down -v;

gotest:
go test -gcflags=all=-l -race -coverprofile=coverage.txt -covermode=atomic ./...

fmt:
@go mod tidy && find . -path ./vendor -prune -o -type f -iname '*.go' -exec go fmt {} \;
5 changes: 5 additions & 0 deletions examples/sf/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*

!.gitignore
!README.md
!sf.yaml
3 changes: 3 additions & 0 deletions examples/sf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Examples for LDBC Social Network

You need to download the ldbc file first.
Loading