Skip to content

Commit 4b456a6

Browse files
authored
Add a new presubmit test to run the unit tests. (#19)
This will land after #18
1 parent 3d21f2f commit 4b456a6

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/presubmit.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,25 @@ jobs:
2929
run: ./gradlew buildPlugin
3030
working-directory: third_party
3131

32-
# Job 2: Verify Plugin
32+
# Job 2: Unit Tests
33+
unit-tests:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout code
37+
uses: actions/checkout@v4 # Use the latest stable version of actions/checkout
38+
39+
- name: Set up JDK
40+
uses: actions/setup-java@v4 # https://github.com/marketplace/actions/setup-java-jdk
41+
with:
42+
distribution: 'temurin' # Recommended distribution
43+
java-version: '21' # Match version in build.gradle.kts
44+
cache: 'gradle' # Cache Gradle dependencies
45+
46+
- name: Unit Test Action
47+
run: ./gradlew :test --tests "com.jetbrains.lang.dart.*"
48+
working-directory: third_party
49+
50+
# Job 3: Verify Plugin
3351
verify-plugin:
3452
runs-on: ubuntu-latest
3553
steps:

0 commit comments

Comments
 (0)