-
Notifications
You must be signed in to change notification settings - Fork 440
42 lines (39 loc) · 1.16 KB
/
maven.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
name: Micro Integrator Build with Tests
on:
pull_request:
branches:
- master
concurrency:
group: ${{ github.event.number }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Synapse
uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11.0.16+8
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2
restore-keys: ${{ runner.os }}-m2
- name: Build Synapse with Maven
run: mvn clean install --file pom.xml
- name: Get synapse version
run: mvn help:evaluate -Dexpression=project.version -q -DforceStdout > ../SYNAPSE_VERSION_FILE
- name: Print synapse version
run: |
echo $(cat ../SYNAPSE_VERSION_FILE)
- name: Checkout MI
uses: actions/checkout@v1
with:
repository: wso2/micro-integrator
ref: refs/heads/master
- name: Build MI with Maven
run: mvn clean install -Dsynapse.version=$(cat ../SYNAPSE_VERSION_FILE) -fae --file ../micro-integrator/pom.xml