Skip to content

Commit 96c1a0a

Browse files
Include the core upgrade tests
1 parent d2c148b commit 96c1a0a

2 files changed

Lines changed: 35 additions & 60 deletions

File tree

.github/workflows/ci-dgraph-core-upgrade-tests.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/ci-dgraph-weekly-upgrade-tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,38 @@ jobs:
107107
go clean -testcache
108108
# sleep
109109
sleep 5
110+
111+
dgraph-upgrade-tests-core:
112+
runs-on: blacksmith-16vcpu-ubuntu-2404
113+
timeout-minutes: 60
114+
steps:
115+
- uses: actions/checkout@v5
116+
with:
117+
fetch-depth: 0
118+
- name: Set up Go
119+
uses: actions/setup-go@v6
120+
with:
121+
go-version-file: go.mod
122+
- name: Make Linux Build and Docker Image
123+
run: make docker-image
124+
- name: Clean Up Environment
125+
run: |
126+
#!/bin/bash
127+
# clean cache
128+
go clean -testcache
129+
- name: Run Core Upgrade Tests
130+
run: |
131+
#!/bin/bash
132+
# go env settings
133+
export GOPATH=~/go
134+
# move the binary
135+
cp dgraph/dgraph ~/go/bin/dgraph
136+
# run the core upgrade tests
137+
go test -v -timeout=120m -failfast -tags=upgrade \
138+
github.com/hypermodeinc/dgraph/v25/acl \
139+
github.com/hypermodeinc/dgraph/v25/worker \
140+
github.com/hypermodeinc/dgraph/v25/query
141+
# clean up docker containers after test execution
142+
go clean -testcache
143+
# sleep
144+
sleep 5

0 commit comments

Comments
 (0)