-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd411c5
commit fd8bdc4
Showing
4 changed files
with
153 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: ci-dgraph-tests | ||
on: | ||
pull_request: | ||
paths: | ||
- '**/*.go' | ||
- '**/go.mod' | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
branches: | ||
- main | ||
- 'release/**' | ||
jobs: | ||
dgraph-systest-tests: | ||
if: github.event.pull_request.draft == false | ||
runs-on: warp-ubuntu-latest-x64-4x | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
- name: Install protobuf-compiler | ||
run: sudo apt update && sudo apt install -y protobuf-compiler | ||
- name: Check protobuf | ||
run: | | ||
cd ./protos | ||
go mod tidy | ||
make regenerate | ||
git diff --exit-code -- . | ||
- name: Make Linux Build and Docker Image | ||
run: make docker-image | ||
- name: Build Test Binary | ||
run: | | ||
#!/bin/bash | ||
# build the test binary | ||
cd t; go build . | ||
- name: Clean Up Environment | ||
run: | | ||
#!/bin/bash | ||
# clean cache | ||
go clean -testcache | ||
# clean up docker containers before test execution | ||
cd t; ./t -r | ||
- name: Run Unit Tests | ||
run: | | ||
#!/bin/bash | ||
# go env settings | ||
export GOPATH=~/go | ||
# move the binary | ||
cp dgraph/dgraph ~/go/bin/dgraph | ||
# run the unit and integration tests | ||
cd t; ./t --suite=systest | ||
# clean up docker containers after test execution | ||
./t -r | ||
# sleep | ||
sleep 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: ci-dgraph-tests | ||
on: | ||
pull_request: | ||
paths: | ||
- '**/*.go' | ||
- '**/go.mod' | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
branches: | ||
- main | ||
- 'release/**' | ||
jobs: | ||
dgraph-vector-tests: | ||
if: github.event.pull_request.draft == false | ||
runs-on: warp-ubuntu-latest-x64-4x | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
- name: Install protobuf-compiler | ||
run: sudo apt update && sudo apt install -y protobuf-compiler | ||
- name: Check protobuf | ||
run: | | ||
cd ./protos | ||
go mod tidy | ||
make regenerate | ||
git diff --exit-code -- . | ||
- name: Make Linux Build and Docker Image | ||
run: make docker-image | ||
- name: Build Test Binary | ||
run: | | ||
#!/bin/bash | ||
# build the test binary | ||
cd t; go build . | ||
- name: Clean Up Environment | ||
run: | | ||
#!/bin/bash | ||
# clean cache | ||
go clean -testcache | ||
# clean up docker containers before test execution | ||
cd t; ./t -r | ||
- name: Run Unit Tests | ||
run: | | ||
#!/bin/bash | ||
# go env settings | ||
export GOPATH=~/go | ||
# move the binary | ||
cp dgraph/dgraph ~/go/bin/dgraph | ||
# run the unit and integration tests | ||
cd t; ./t --suite=vector | ||
# clean up docker containers after test execution | ||
./t -r | ||
# sleep | ||
sleep 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters