Add workflow to check build and tests on PRs + releases. (#1769)

PRs are setup to skip docs.

Also, only run docker actions on linkedin/datahub (i.e. disable on forks; makes forks nicer since you don't have failing actions).
This commit is contained in:
John Plaisted 2020-08-01 14:54:32 -07:00 committed by GitHub
parent 4b6b1dd192
commit c56936b9ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 4 deletions

26
.github/workflows/check-pr.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Gradle Build & Test
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
release:
types: [published, edited]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Gradle build (and test)
run: ./gradlew build

View File

@ -1,5 +1,5 @@
name: datahub-frontend docker
on:
on:
push:
branches:
- master
@ -9,6 +9,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'linkedin/datahub' }}
steps:
- uses: actions/checkout@v2
- uses: docker/build-push-action@v1

View File

@ -1,5 +1,5 @@
name: datahub-gms docker
on:
on:
push:
branches:
- master
@ -9,6 +9,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'linkedin/datahub' }}
steps:
- uses: actions/checkout@v2
- uses: docker/build-push-action@v1

View File

@ -1,5 +1,5 @@
name: datahub-mae-consumer docker
on:
on:
push:
branches:
- master
@ -9,6 +9,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'linkedin/datahub' }}
steps:
- uses: actions/checkout@v2
- uses: docker/build-push-action@v1

View File

@ -1,5 +1,5 @@
name: datahub-mce-consumer docker
on:
on:
push:
branches:
- master
@ -9,6 +9,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'linkedin/datahub' }}
steps:
- uses: actions/checkout@v2
- uses: docker/build-push-action@v1