Skip to content

Commit

Permalink
ci: compile with all MPS versions
Browse files Browse the repository at this point in the history
The previously added docker integration tests are necessary, but not a replacement for compiling
against different MPS versions.
The tests don't have a 100 % coverage and the static analysis of the compiler is still useful.
Most breaking changes in the API can be detected without executing the code.
  • Loading branch information
slisson committed Feb 11, 2025
1 parent fa01fb5 commit 5987a3b
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/mps-compatibility.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: MPS compatibility

on:
push:
branches:
- 'main'
pull_request: {}
# allow manual execution just in case
workflow_dispatch:

jobs:
assemble-mps-components:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
version:
- "2020.3"
- "2021.1"
- "2021.2"
- "2021.3"
- "2022.2"
- "2022.3"
- "2023.2"
- "2024.1"
- "2024.3"
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Set up Gradle
uses: gradle/gradle-build-action@v3
- name: Assemble with ${{ matrix.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
./gradlew --build-cache
assemble
-Pmps.version.major=${{ matrix.version }}

0 comments on commit 5987a3b

Please sign in to comment.