Skip to content

ci(test): integrate Trunk into multiple CI workflows to identify flaky tests #2164

ci(test): integrate Trunk into multiple CI workflows to identify flaky tests

ci(test): integrate Trunk into multiple CI workflows to identify flaky tests #2164

name: ci-dgraph-oss-build
on:
pull_request:
paths:
- '**/*.go'
- '**/go.mod'
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
- 'release/**'
jobs:
dgraph-oss-build:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Make OSS Linux Build
run: make oss # verify that we can make OSS build
- name: Run OSS Unit Tests
run: |
#!/bin/bash
# go env settings
export GOPATH=~/go
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run OSS unit tests
go test -timeout=60m -failfast -tags=oss -count=1 ./...