Initial for GitHub Actions
This commit is contained in:
32
.github/workflows/pr-build-workflow.yml
vendored
Normal file
32
.github/workflows/pr-build-workflow.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Pull Request build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
services:
|
||||
rabbitmq:
|
||||
image: rabbitmq
|
||||
ports:
|
||||
- 5672:5672
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
|
||||
- name: Run Gradle
|
||||
uses: burrunan/gradle-cache-action@v1
|
||||
env:
|
||||
SI_FATAL_WHEN_NO_BEANFACTORY: true
|
||||
NO_REFERENCE_TASK: true
|
||||
with:
|
||||
arguments: checkAsciidocLinks check
|
||||
@@ -22,7 +22,7 @@ plugins {
|
||||
id 'org.asciidoctor.jvm.convert' version '3.3.0'
|
||||
}
|
||||
|
||||
if (System.getenv('TRAVIS') || System.getenv('bamboo_buildKey')) {
|
||||
if (System.getenv('GITHUB_ACTION') || System.getenv('bamboo_buildKey')) {
|
||||
apply plugin: 'io.spring.nohttp'
|
||||
|
||||
nohttp {
|
||||
@@ -259,7 +259,7 @@ configure(javaProjects) { subproject ->
|
||||
[compileJava, compileTestJava]*.options*.compilerArgs = [xLintArg]
|
||||
|
||||
task updateCopyrights {
|
||||
onlyIf { !System.getenv('TRAVIS') && !System.getenv('bamboo_buildKey') }
|
||||
onlyIf { !System.getenv('GITHUB_ACTION') && !System.getenv('bamboo_buildKey') }
|
||||
inputs.files(modifiedFiles.filter { f -> f.path.contains(subproject.name) })
|
||||
outputs.dir('build/classes')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user