ci(test): integrate Trunk into multiple CI workflows to identify flaky tests #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-dgraph-core-upgrade-tests | |
on: | |
pull_request: | |
paths: | |
- '**/*.go' | |
- '**/go.mod' | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
branches: | |
- main | |
- 'release/**' | |
jobs: | |
dgraph-upgrade-tests: | |
if: github.event.pull_request.draft == false | |
runs-on: warp-ubuntu-latest-x64-4x | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
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 Core Upgrade Tests | |
run: | | |
#!/bin/bash | |
# go env settings | |
export GOPATH=~/go | |
export DGRAPH_UPGRADE_MAIN_ONLY=true | |
# move the binary | |
cp dgraph/dgraph ~/go/bin/dgraph | |
# run the core upgrade tests | |
go test -tags=upgrade \ | |
github.com/dgraph-io/dgraph/v24/ee/acl \ | |
github.com/dgraph-io/dgraph/v24/worker \ | |
github.com/dgraph-io/dgraph/v24/query \ | |
-v -timeout=120m -failfast | |
# clean up docker containers after test execution | |
go clean -testcache | |
# sleep | |
sleep 5 |