diff --git a/.github/workflows/pr-build-workflow.yml b/.github/workflows/pr-build-workflow.yml new file mode 100644 index 0000000000..d6b15aec25 --- /dev/null +++ b/.github/workflows/pr-build-workflow.yml @@ -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 diff --git a/build.gradle b/build.gradle index 4bd134aeb2..c7610c55d7 100644 --- a/build.gradle +++ b/build.gradle @@ -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')