Skip to content

ci-dgraph-upgrade-fixed-versions-tests #158

ci-dgraph-upgrade-fixed-versions-tests

ci-dgraph-upgrade-fixed-versions-tests #158

name: ci-dgraph-upgrade-fixed-versions-tests
on:
schedule:
- cron: "00 20 * * *" # 1 run per day
jobs:
dgraph-upgrade-fixed-versions-tests:
runs-on: warp-ubuntu-latest-x64-16x
timeout-minutes: 720
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- 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@v5
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 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=10h -failfast -tags=upgrade ./...
# clean up docker containers after test execution
go clean -testcache
# sleep
sleep 5