Skip to content

Commit

Permalink
ci: run tests with all supported MPS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
slisson committed Nov 6, 2023
1 parent ca7cf16 commit 2702cf0
Showing 1 changed file with 26 additions and 16 deletions.
42 changes: 26 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 2702cf0

Please sign in to comment.