Skip to content

Chore(raft): Add debug logs to print all transactions #1065

Chore(raft): Add debug logs to print all transactions

Chore(raft): Add debug logs to print all transactions #1065

name: ci-dgraph-upgrade-and-integration-tests
on:
push:
branches:
- main
- 'release/**'
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
- 'release/**'
schedule:
- cron: "0 */2 * * *" # every 2hrs
jobs:
dgraph-upgrade-and-integration-tests:
if: github.event.pull_request.draft == false
runs-on: [self-hosted, x64]
steps:
- uses: actions/checkout@v3
- name: Get Go Version
run: |
#!/bin/bash
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GOVERSION }}
- name: Make Linux Build and Docker Image
run: make docker-image
- name: Clean Up Environment
run: |
#!/bin/bash
# clean cache
go clean -testcache
- name: Run Upgrade and Integration Tests
run: |
#!/bin/bash
# go env settings
export GOPATH=~/go
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the tests
go test -v -timeout=60m -failfast -tags=upgrade,integration2 ./...
# clean up docker containers after test execution
go clean -testcache
# sleep
sleep 5