-
Notifications
You must be signed in to change notification settings - Fork 20
62 lines (55 loc) · 2.13 KB
/
maven-run-tests.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
56
57
58
59
60
61
62
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
pull_request:
branches: [ development** ]
jobs:
build:
runs-on: ubuntu-latest
# Service containers to run with `container-job`
services:
keycloak:
# KeyCloak Docker Hub image
image: jboss/keycloak:16.1.1
# Provide the username, password for KeyCloak
env:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
# Maps tcp port 9006 on service container to the host
ports:
- 9006:8080
steps:
- name: Checkout Examples
uses: actions/checkout@v4
with:
path: main
- name: Checkout BaSyx Components - Development Branch
uses: actions/checkout@v4
with:
repository: eclipse-basyx/basyx-java-components
path: components
ref: development
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
cache: maven
- name: Check status of KeyCloak container
run: docker ps | grep jboss/keycloak
- name: Install BaSyx Components
run: |
mkdir -p ~/.m2
echo "<settings><servers><server><id>Eclipse BaSyx SDK GitHub Packages</id><username>x-access-token</username><password>${GITHUB_TOKEN}</password></server></servers></settings>" > ~/.m2/settings.xml
mvn -B clean install --file components/basyx.components/pom.xml -DskipTests
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Build Examples with Maven
run: mvn -B package --file main/basyx.examples/pom.xml
- name: Build AasWrapper with Maven
run: mvn -B package --file main/basyx.aasWrapper/pom.xml
- name: Build DashboardAas with Maven
run: mvn -B package --file main/basyx.dashboardAAS/pom.xml
- name: Build Hello_world with Maven
run: mvn -B package --file main/basyx.hello_world/pom.xml