-
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.
* open load tests * fix job name * fix task name * Update ci-dgraph-load-tests.yml * Update ci-dgraph-load-tests.yml
- Loading branch information
1 parent
30734c6
commit 4eeaf77
Showing
1 changed file
with
68 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: ci-dgraph-load-tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: "*/30 * * * *" | ||
jobs: | ||
dgraph-load-tests: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Install protobuf-compiler | ||
run: sudo apt-get install -y protobuf-compiler | ||
- name: Check protobuf | ||
run: | | ||
cd ./protos | ||
go mod tidy | ||
make regenerate | ||
git diff --exit-code -- . | ||
- name: Make Docker Image | ||
run: make image-local | ||
- name: Make Linux Build | ||
run: | | ||
#!/bin/bash | ||
# go settings | ||
export GOOS=linux | ||
export GOARCH=amd64 | ||
# make dgraph binary | ||
make dgraph | ||
- name: Clean Up Environment | ||
run: | | ||
#!/bin/bash | ||
# clean cache | ||
go clean -testcache | ||
# build the test binary | ||
cd t; go build . | ||
# clean up docker containers before test execution | ||
./t -r | ||
- name: Run Load Tests | ||
run: | | ||
#!/bin/bash | ||
# clean cache | ||
go clean -testcache | ||
# go env settings | ||
export GOPATH=~/go | ||
# move the binary | ||
cp dgraph/dgraph ~/go/bin | ||
# build the test binary | ||
cd t; go build . | ||
# run the load tests | ||
./t --suite=load | ||
# clean up docker containers after test execution | ||
./t -r | ||
- name: Cleaning Up $GITHUB_WORKSPACE | ||
# Volume auto mounted by gh actions pointing to the current working-directory | ||
run: find /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}/. -name . -o -prune -exec rm -rf -- {} + || true |