-
Notifications
You must be signed in to change notification settings - Fork 21
112 lines (108 loc) · 4.07 KB
/
validation.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: Validation
on:
pull_request:
jobs:
validate_framework:
name: Framework
uses: ./.github/workflows/ci.yml
build_dsls:
name: DSLs
runs-on: ubuntu-latest
steps:
- name: Checkout DSLs
uses: actions/checkout@v4
with:
path: dsls
repository: vitruv-tools/Vitruv-DSLs
ref: main
fetch-depth: 0
- name: Checkout Matching DSLs Branch
run: |
cd dsls
git checkout -B ${{ github.head_ref }} origin/${{ github.head_ref }} || true
- name: Cache
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Build DSLs
uses: coactions/setup-xvfb@v1
with:
working-directory: ./dsls
run: >
./mvnw -B -U clean package
-Dstyle.color=always
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.tycho.core.resolver.DefaultTychoResolver=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.tycho.osgi.configuration.MavenContextConfigurator=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.sisu.equinox.launching.internal.DefaultEquinoxLauncher=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.xtext.maven.XtextGenerateMojo=warn
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
env:
MAVEN_OPTS: -Djansi.force=true
- name: Store DSLs Artifact
uses: actions/upload-artifact@v3
with:
name: dsls
path: dsls/releng/tools.vitruv.dsls.updatesite/target/repository
retention-days: 1
validate_casestudies:
needs: [validate_framework, build_dsls]
name: Case Studies
runs-on: ubuntu-latest
steps:
- name: Download Framework Artifact
uses: actions/download-artifact@v3
with:
name: framework
path: framework
- name: Download DSLs Artifact
uses: actions/download-artifact@v3
with:
name: dsls
path: dsls
- name: Checkout Case Studies
uses: actions/checkout@v4
with:
path: casestudies
repository: vitruv-tools/Vitruv-CaseStudies
ref: main
fetch-depth: 0
- name: Checkout Matching Case Studies Branch
run: |
cd casestudies
git checkout -B ${{ github.head_ref }} origin/${{ github.head_ref }} || true
- name: Cache
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Build and Verify Case Studies
uses: coactions/setup-xvfb@v1
with:
working-directory: ./casestudies
run: >
./mvnw -B -U clean verify
-Dvitruv.framework.url=file:///${{ github.workspace }}/framework
-Dvitruv.dsls.url=file:///${{ github.workspace }}/dsls
-Dstyle.color=always
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.tycho.core.resolver.DefaultTychoResolver=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.tycho.osgi.configuration.MavenContextConfigurator=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.sisu.equinox.launching.internal.DefaultEquinoxLauncher=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.xtext.maven.XtextGenerateMojo=warn
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
env:
MAVEN_OPTS: -Djansi.force=true