Skip to content

Commit fa01fb5

Browse files
authored
Merge pull request #194 from modelix/docker-integration-tests
Docker integration tests
2 parents 0f5ef5d + 1d2c80f commit fa01fb5

File tree

33 files changed

+429
-392
lines changed

33 files changed

+429
-392
lines changed
Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Binary Compatibility
1+
name: Build
22

33
on:
44
push:
@@ -9,20 +9,30 @@ on:
99
workflow_dispatch:
1010

1111
jobs:
12-
checkBinaryCompatibility:
13-
12+
build-mps-components:
1413
runs-on: ubuntu-latest
15-
14+
timeout-minutes: 60
1615
steps:
1716
- uses: actions/checkout@v4
1817
- name: Set up JDK
1918
uses: actions/setup-java@v4
2019
with:
2120
distribution: 'temurin'
22-
java-version: '17'
21+
java-version: '21'
2322
- name: Set up Gradle
2423
uses: gradle/gradle-build-action@v3
2524
- name: Build
2625
env:
2726
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
run: ./check-binary-compatibility.sh
27+
run: >-
28+
./gradlew --build-cache
29+
build
30+
-PciBuild=true
31+
- name: Archive test report
32+
uses: actions/upload-artifact@v4
33+
if: always()
34+
with:
35+
name: test-report
36+
path: |
37+
*/build/test-results
38+
*/build/reports

.github/workflows/mps-compatibility.yaml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/setup-java@v4
2424
with:
2525
distribution: 'temurin'
26-
java-version: '17'
26+
java-version: '21'
2727
- name: Set up Gradle
2828
uses: gradle/gradle-build-action@v3
2929
- name: Use tag as version
@@ -40,4 +40,3 @@ jobs:
4040
-Pgpr.user=${{ github.actor }}
4141
-Pgpr.key=${{ secrets.GITHUB_TOKEN }}
4242
-Pgpr.universalkey=${{ secrets.GHP_UNIVERSAL_PUBLISH_TOKEN }}
43-
-Pmps.version=2023.2

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ subprojects {
9898

9999
allprojects {
100100
repositories {
101-
mavenLocal()
102101
maven { url = uri("https://artifacts.itemis.cloud/repository/maven-mps/") }
103102
mavenCentral()
104103
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") }
104+
mavenLocal()
105105
}
106106

107107
publishing {

buildSrc/src/main/kotlin/org/modelix/CopyMps.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ val Project.mpsPlatformVersion: Int get() {
5858
return mpsVersion.replace(Regex("""20(\d\d)\.(\d+).*"""), "$1$2").toInt()
5959
}
6060

61-
val Project.mpsJavaVersion: Int get() = if (mpsPlatformVersion >= 223) 17 else 11
62-
6361
val Project.mpsHomeDir: Provider<Directory> get() {
6462
if (project != rootProject) return rootProject.mpsHomeDir
6563
return project.layout.buildDirectory.dir("mps-$mpsVersion")

check-binary-compatibility.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ modelix-modelql-untyped = { group = "org.modelix", name = "modelql-untyped", ver
2020
modelix-modelql-html = { group = "org.modelix", name = "modelql-html", version.ref = "modelixCore" }
2121
modelix-model-datastructure = { group = "org.modelix", name = "model-datastructure", version.ref = "modelixCore" }
2222
modelix-mps-model-adapters = { group = "org.modelix.mps", name = "model-adapters", version.ref = "modelixCore" }
23+
modelix-mpsApi = { group = "org.modelix.mps", name = "stable-api", version = "1.1.1" }
2324

2425
kotlin-logging = { group = "io.github.oshai", name = "kotlin-logging", version = "7.0.3" }
2526
kotlin-logging-microutils = { group = "io.github.microutils", name = "kotlin-logging", version = "3.0.5" }

gradle/wrapper/gradle-wrapper.jar

-19.8 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew.bat

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

0 commit comments

Comments
 (0)