Skip to content

Commit

Permalink
fix(test): open load tests (#8300)
Browse files Browse the repository at this point in the history
* open load tests

* fix job name

* fix task name

* Update ci-dgraph-load-tests.yml

* Update ci-dgraph-load-tests.yml
  • Loading branch information
skrdgraph authored Sep 16, 2022
1 parent c1be93b commit 3ab3ebf
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/ci-dgraph-load-tests.yml
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

0 comments on commit 3ab3ebf

Please sign in to comment.