Skip to content

Commit

Permalink
add workflow for oss build
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Goldstein committed May 22, 2023
1 parent 23e60f9 commit cfad361
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/ci-dgraph-oss-build.yml
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 ./...

0 comments on commit cfad361

Please sign in to comment.