Skip to content

Commit

Permalink
fix(test): to execute on self-hosted runner (#8271)
Browse files Browse the repository at this point in the history
* Update README.md

* Update ci-dgraph-tests.yml

* Update README.md

* Update ci-dgraph-tests.yml

* Update ci-dgraph-tests.yml

* Update ci-dgraph-tests.yml

* Update ci-dgraph-tests.yml

* Update ci-dgraph-tests.yml

* Update ci-dgraph-tests.yml

* Update ci-dgraph-tests.yml

* Update ci-dgraph-tests.yml

* Update ci-dgraph-tests.yml

* Update ci-dgraph-tests.yml

* Update ci-dgraph-tests.yml

* Update ci-dgraph-tests.yml

Co-authored-by: dshekhar95 <111321288+dshekhar95@users.noreply.github.com>
  • Loading branch information
skrdgraph and dshekhar95 authored Sep 15, 2022
1 parent ee44bb7 commit d649890
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci-dgraph-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- cron: "*/30 * * * *"
jobs:
dgraph-tests:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Set up Go
Expand All @@ -23,6 +23,12 @@ jobs:
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 Linux Build
run: |
#!/bin/bash
Expand All @@ -31,24 +37,20 @@ jobs:
export GOARCH=amd64
# make dgraph binary
make dgraph
- name: Check protobuf
run: |
cd ./protos
go mod tidy
make regenerate
git diff --exit-code -- .
- name: Run unit tests
run: |
#!/bin/bash
# clean cache
go clean -testcache
# go env settings
export GOPATH=~/go
# move the binary
cp ~/work/dgraph/dgraph/dgraph/dgraph ~/go/bin
cp dgraph/dgraph ~/go/bin
# build the test binary
cd t; go build .
# clean up docker containers before test execution
./t -r
# run the tests
./t --skip systest,tlstest,dgraph/cmd,graphql/e2e
./t --skip systest/backup,systest/online-restore,systest/loader,tlstest
# clean up docker containers after test execution
./t -r

0 comments on commit d649890

Please sign in to comment.