From c42baf31763ec7c954fde3ddf85e8301091bfadf Mon Sep 17 00:00:00 2001 From: Jaime Wren Date: Fri, 18 Jul 2025 15:47:24 -0700 Subject: [PATCH] Add a new presubmit test to run the unit tests. This will land after https://github.com/flutter/dart-intellij-third-party/pull/18 --- .github/workflows/presubmit.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/presubmit.yaml b/.github/workflows/presubmit.yaml index 708581849..48b54c7ff 100644 --- a/.github/workflows/presubmit.yaml +++ b/.github/workflows/presubmit.yaml @@ -29,7 +29,25 @@ jobs: run: ./gradlew buildPlugin working-directory: third_party - # Job 2: Verify Plugin + # Job 2: Unit Tests + unit-tests: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 # Use the latest stable version of actions/checkout + + - name: Set up JDK + uses: actions/setup-java@v4 # https://github.com/marketplace/actions/setup-java-jdk + with: + distribution: 'temurin' # Recommended distribution + java-version: '21' # Match version in build.gradle.kts + cache: 'gradle' # Cache Gradle dependencies + + - name: Unit Test Action + run: ./gradlew :test --tests "com.jetbrains.lang.dart.*" + working-directory: third_party + + # Job 3: Verify Plugin verify-plugin: runs-on: ubuntu-latest steps: