Skip to content

Commit 922af2f

Browse files
committed
Add smoke test agentic workflow
1 parent f067cb9 commit 922af2f

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

.github/workflows/run-smoke-test.lock.yml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/run-smoke-test.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ network:
1414
allowed:
1515
- defaults
1616
- github
17+
- java
1718

1819
tools:
1920
github:
@@ -33,6 +34,34 @@ This workflow builds the copilot-sdk-java SDK locally and runs the smoke test pr
3334

3435
You are running inside the copilot-sdk-java repository.
3536

37+
### Step 0 — Install JDK 17 and Maven
38+
39+
Before anything else, install the required build tools:
40+
41+
1. **Microsoft Build of OpenJDK 17** (latest stable). Download and install from the official Microsoft packages:
42+
```bash
43+
wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O /tmp/packages-microsoft-prod.deb
44+
sudo dpkg -i /tmp/packages-microsoft-prod.deb
45+
sudo apt-get update
46+
sudo apt-get install -y msopenjdk-17
47+
export JAVA_HOME=/usr/lib/jvm/msopenjdk-17-amd64
48+
export PATH="$JAVA_HOME/bin:$PATH"
49+
```
50+
51+
2. **Maven 3.9.14**:
52+
```bash
53+
wget -q https://archive.apache.org/dist/maven/maven-3/3.9.14/binaries/apache-maven-3.9.14-bin.tar.gz -O /tmp/maven.tar.gz
54+
sudo tar -xzf /tmp/maven.tar.gz -C /opt
55+
export PATH="/opt/apache-maven-3.9.14/bin:$PATH"
56+
```
57+
58+
3. **Verify** both are working:
59+
```bash
60+
java -version # Must show "Microsoft" and version 17
61+
mvn --version # Must show 3.9.14
62+
```
63+
If either installation fails, report failure and stop.
64+
3665
### Step 1 — Build the SDK locally
3766

3867
Run the following command from the repository root to install the SDK snapshot into the local Maven repository:

0 commit comments

Comments
 (0)