Initial for GitHub Actions

This commit is contained in:
Artem Bilan
2020-12-08 13:26:47 -05:00
parent 15c2d16866
commit 45877ba9bc
2 changed files with 34 additions and 2 deletions

32
.github/workflows/pr-build-workflow.yml vendored Normal file
View 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

View File

@@ -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')