-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (51 loc) · 1.68 KB
/
continous-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Continuous Integration
on:
push:
branches: [ '**' ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Git Checkout main project
uses: actions/checkout@v2
with:
path: camunda-bpmn-documentation-generator
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: clean and build camunda-bpmn-documentation-generator
uses: gradle/gradle-build-action@v2
with:
arguments: clean build publishToMavenLocal
build-root-directory: ./camunda-bpmn-documentation-generator
- name: git checkout maven plugin project
uses: actions/checkout@v2
with:
repository: NovatecConsulting/cbdg-maven-plugin
path: cbdg-maven-plugin
ref: CBDG-51
- name: build cbdg-maven-plugin
run: cd ./cbdg-maven-plugin; mvn clean install
- name: git checkout test project
uses: actions/checkout@v2
with:
repository: NovatecConsulting/cbdg-maven-test
path: cbdg-maven-test
ref: CBDG-51
- name: build cbdg-maven-test
run: cd ./cbdg-maven-test; mvn clean install
- name: clean and build cbdg-test
uses: gradle/gradle-build-action@v2
with:
arguments: clean build
build-root-directory: ./cbdg-maven-test