Skip to content

paths and error handling in plugin tests #65

paths and error handling in plugin tests

paths and error handling in plugin tests #65

Workflow file for this run

name: Run E2E tests
on:
push:
branches: [ fabrizio.scarponi/e2e-test ]
jobs:
gradle-e2e-tests:
continue-on-error: true
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
# gradle-versions: [ '5.6.4', '6.9.2', '7.6.4', '8.6', 'latest' ]
gradle-version: [ '5.6.4', '6.9.2', '8.6' ]
name: Gradle ${{ matrix.gradle-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: gradle/gradle-build-action@v2
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
- name: Run Gradle tests
id: test
env:
KMP: true
GRADLE_VERSION: ${{ matrix.gradle-version }}
GRADLE_ENTERPRISE_KEY: ${{ secrets.GRADLE_ENTERPRISE_KEY }}
JAVA_VERSION: ${{matrix.jdk-version}}
run: ./gradlew :plugin:test --tests "GradleE2ETests"
- name: Upload test result
if: steps.test.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: testResult-${{ matrix.os }}-${{ matrix.gradle-version }}
path: /home/runner/work/package-search-intellij-plugin/package-search-intellij-plugin/plugin/build/testData
maven-e2e-tests:
continue-on-error: true
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
name: Maven on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: gradle/gradle-build-action@v2
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
- name: Run Gradle tests
id: test
env:
KMP: true
GRADLE_ENTERPRISE_KEY: ${{ secrets.GRADLE_ENTERPRISE_KEY }}
JAVA_VERSION: ${{matrix.jdk-version}}
run: ./gradlew :plugin:test --tests "MavenE2ETests"
- name: Upload test result
if: steps.test.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: testResult-${{ matrix.os }}-${{ matrix.gradle-version }}
path: /home/runner/work/package-search-intellij-plugin/package-search-intellij-plugin/plugin/build/testData