-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathci-dgraph-system-upgrade-tests-mt.yml
More file actions
58 lines (55 loc) · 1.4 KB
/
ci-dgraph-system-upgrade-tests-mt.yml
File metadata and controls
58 lines (55 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: ci-dgraph-system-upgrade-tests-multi-tenancy
on:
pull_request:
paths:
- "!**/*.md"
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/*.json"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
- release/**
permissions:
contents: read
jobs:
dgraph-upgrade-tests:
if: github.event.pull_request.draft == false
runs-on: blacksmith-8vcpu-ubuntu-2404
timeout-minutes: 90
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- 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 System Upgrade Tests
run: |
#!/bin/bash
# go env settings
export GOPATH=~/go
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the sytem upgrade tests
go test -v -timeout=120m -failfast -tags=upgrade \
github.com/hypermodeinc/dgraph/v25/systest/multi-tenancy
# clean up docker containers after test execution
go clean -testcache
# sleep
sleep 5