-
Notifications
You must be signed in to change notification settings - Fork 13
56 lines (53 loc) · 1.75 KB
/
maven-core-cm.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Test Suite [OSLC Core 2.0 / CM]
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
# schedule:
# - cron: "30 4 * * 5" # catch SNAPSHOT breaking changes
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
jdk: ['17', '21', '22-ea']
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
path: testsuite
- uses: actions/checkout@v4
with:
repository: oslc-op/refimpl
ref: master
path: refimpl
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: 'zulu'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build RefImpl
run: |
# disable basic auth
cp -f testsuite/org.eclipse.lyo.testsuite.server/config/refimpl2020/cm/web.xml refimpl/src/server-cm/src/main/webapp/WEB-INF/web.xml
mvn -B -f refimpl/src/lib-common/pom.xml clean install
mvn -B -f refimpl/src/pom.xml clean package
docker-compose -f refimpl/src/docker-compose.yml build
- name: Run Lyo Test Suite
run: |
docker-compose -f refimpl/src/docker-compose.yml up --detach
>&2 echo "Sleeping for 20 seconds"
sleep 20
>&2 echo "Done sleeping"
testsuite/scripts/run-suite.sh