-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joshua Goldstein
committed
May 22, 2023
1 parent
23e60f9
commit cfad361
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: ci-dgraph-oss-build | ||
on: | ||
push: | ||
paths-ignore: | ||
- '.github/CODEOWNERS' | ||
- '.vscode/**' | ||
- 'compose/**' | ||
- 'contrib/systemd/**' | ||
- 'licenses/**' | ||
- 'paper/**' | ||
- 'present/**' | ||
- 'RFC/**' | ||
- 'static/**' | ||
- 'wiki/**' | ||
- '**/**.dockerignore' | ||
- '**/**.gitignore' | ||
- '**/**.md' | ||
- '**/**.png' | ||
- '**/**.jpg' | ||
- '**/**.gif' | ||
- '**/**.ini' | ||
branches: | ||
- main | ||
- 'release/**' | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
branches: | ||
- main | ||
- 'release/**' | ||
schedule: | ||
- cron: "0 0,6,12,18 * * *" | ||
jobs: | ||
dgraph-tests: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- 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@v3 | ||
with: | ||
go-version: ${{ env.GOVERSION }} | ||
- 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 | ||
# run OSS unit tests | ||
go test -timeout=60m -failfast -tags=oss ./... |