From 2702cf0e83b183bbc00a2ed0fad295d7194dfb8d Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Mon, 6 Nov 2023 09:55:53 +0100 Subject: [PATCH] ci: run tests with all supported MPS versions --- .github/workflows/build.yml | 42 +++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5be5985..2334b2b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,22 +6,32 @@ on: - '**' jobs: - assembleWholeProject: - + build-and-test-with-mps: 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@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 - - name: Test MPSBuild Gradle Plugin - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: build-tools-gradle-test/ci.sh + - uses: actions/checkout@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '17' + - name: Set up Gradle + uses: gradle/gradle-build-action@v2 + - name: Assemble + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: ./gradlew build publishToMavenLocal -PciBuild=true + - name: Test with ${{ matrix.version }} + run: cd build-tools-gradle-test && ./gradlew --build-cache build publishToMavenLocal -Pmps.version=${{ matrix.version }}