Skip to content

Commit b5b38ec

Browse files
added steps to get the required dependencies
1 parent eef9229 commit b5b38ec

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/create_tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v6
2323
with:
2424
path: dotnet-repo
2525

2626
- name: Checkout reference Java implementation Repository
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828
with:
2929
repository: ${{ env.TEST_GEN_REPO_NAME }}
3030
ref: ${{ env.TEST_GEN_REPO_BRANCH }}
@@ -38,9 +38,15 @@ jobs:
3838
- name: Compile and Run MyTest.java
3939
run: |
4040
cd java-repo/java
41+
42+
echo "Downloading required dependencies..."
43+
curl -fSL -O https://repo1.maven.org/maven2/androidx/annotation/annotation-jvm/1.9.1/annotation-jvm-1.9.1.jar
44+
curl -fSL -O https://repo1.maven.org/maven2/com/google/errorprone/error_prone_annotations/2.45.0/error_prone_annotations-2.45.0.jar
4145
42-
javac MyTest.java
46+
echo "Compiling MyTest.java..."
47+
javac -cp ".:annotation-jvm-1.9.1.jar:error_prone_annotations-2.45.0.jar" MyTest.java
4348
49+
echo "Executing MyTest.java..."
4450
java MyTest "$GITHUB_WORKSPACE/dotnet-repo/MaterialTheming.Tests/KnownTestThemes"
4551
4652
- name: Create Pull Request

0 commit comments

Comments
 (0)