ci: run tests with all supported MPS versions #79
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
assembleWholeProject: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Assemble | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew build publishToMavenLocal -PciBuild=true | |
test-with-mps: | |
needs: assembleWholeProject | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: | |
- "2020.3.6" | |
- "2021.1.4" | |
- "2021.2.6" | |
- "2021.3.4" | |
- "2022.2.1" | |
- "2022.3" | |
- "2023.2" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Build with ${{ matrix.version }} | |
run: cd build-tools-gradle-test && ./gradlew --build-cache build publishToMavenLocal -Pmps.version=${{ matrix.version }} |