-
Notifications
You must be signed in to change notification settings - Fork 32
37 lines (33 loc) · 1.19 KB
/
vro-worker.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
name: test vro-worker
on: [pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'zulu'
cache: 'maven'
- name: test vro-worker
run: |
export FLOWGATEPWD=$PWD
cd $FLOWGATEPWD/flowgate-common
sudo mvn clean install
cd $FLOWGATEPWD/common-restclient
sudo mvn clean install
cd $FLOWGATEPWD/worker-jobs
sudo mvn clean install
cd $FLOWGATEPWD/vro-worker
sudo mvn install:install-file -Dfile=./src/libs/platform-api-model-1.35.jar -DgroupId=com.vmware -DartifactId=platform-api-model -Dversion=1.35 -Dpackaging=jar -DgeneratePom=true
sudo mvn install:install-file -Dfile=./src/libs/vcops-suiteapi-client-1.35.jar -DgroupId=com.vmware -DartifactId=vcops-suiteapi-client -Dversion=1.35 -Dpackaging=jar -DgeneratePom=true
sudo mvn clean initialize
sudo mvn clean test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
flags: vro
name: codecov-vro-worker
fail_ci_if_error: true