-
Notifications
You must be signed in to change notification settings - Fork 7
178 lines (173 loc) · 6.58 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
name: Validation
on:
pull_request:
jobs:
validate_change:
name: Change
uses: ./.github/workflows/ci.yml
validate_framework:
needs: validate_change
name: Framework
runs-on: ubuntu-latest
steps:
- name: Download Change Artifact
uses: actions/download-artifact@v3
with:
name: change
path: change
- name: Checkout Framework
uses: actions/checkout@v4
with:
path: framework
repository: vitruv-tools/Vitruv
ref: main
fetch-depth: 0
- name: Checkout Matching Framework Branch
run: |
cd framework
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 Framework
working-directory: ./framework
run: >
./mvnw -B -U clean verify
'-Dvitruv.change.url=file:///${{ github.workspace }}/change'
'-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 Framework Artifact
uses: actions/upload-artifact@v3
with:
name: framework
path: framework/releng/tools.vitruv.updatesite/target/repository
retention-days: 1
validate_DSLs:
needs: validate_change
name: DSLs
runs-on: ubuntu-latest
steps:
- name: Download Change Artifact
uses: actions/download-artifact@v3
with:
name: change
path: change
- 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 and Verify DSLs
uses: coactions/setup-xvfb@v1
with:
working-directory: ./dsls
run: >
./mvnw -B -U clean verify
-Dvitruv.change.url=file:///${{ github.workspace }}/change
-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_change, validate_framework, validate_DSLs]
name: Case Studies
runs-on: ubuntu-latest
steps:
- name: Download Change Artifact
uses: actions/download-artifact@v3
with:
name: change
path: change
- 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.change.url=file:///${{ github.workspace }}/change
-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