Skip to content

Commit ebb68f2

Browse files
committed
Push build & test jobs
1 parent 94010e2 commit ebb68f2

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build InsideAgentDev
2+
run-name: ${{ github.actor }} started a build process.
3+
on: [ push ]
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
timeout-minutes: 2
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-java@v4
11+
with:
12+
distribution: 'oracle'
13+
java-version: '23.0.1'
14+
- run: |
15+
mvn --batch-mode --update-snapshots verify
16+
17+
18+
build:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 2
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-java@v4
24+
with:
25+
distribution: 'oracle'
26+
java-version: '23.0.1'
27+
- run: |
28+
mvn package --file pom.xml
29+
- name: Extract Maven project version
30+
run: |
31+
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
32+
- uses: actions/upload-artifact@v4
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
name: InsideAgentDev-${{env.RELEASE_VERSION}}
37+
path: out/Bot/InsideAgentDev-${{env.RELEASE_VERSION}}.jar
38+
39+
40+
#lint:

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,18 @@
88
<artifactId>InsideAgentDev</artifactId>
99
<version>0.10.0</version>
1010
<build>
11+
<testSourceDirectory>${project.basedir}/src/test/java/</testSourceDirectory>
1112
<plugins>
13+
<plugin>
14+
<groupId>org.apache.maven.plugins</groupId>
15+
<artifactId>maven-surefire-plugin</artifactId>
16+
<version>3.1.2</version>
17+
<configuration>
18+
<excludes>
19+
<!-- Exclude Test files here -->
20+
</excludes>
21+
</configuration>
22+
</plugin>
1223
<plugin>
1324
<groupId>org.apache.maven.plugins</groupId>
1425
<artifactId>maven-compiler-plugin</artifactId>
@@ -231,6 +242,19 @@
231242
<version>8.3.0</version>
232243
</dependency>
233244

245+
<dependency>
246+
<groupId>org.junit.jupiter</groupId>
247+
<artifactId>junit-jupiter-engine</artifactId>
248+
<version>5.10.0</version>
249+
<scope>test</scope>
250+
</dependency>
251+
252+
<dependency>
253+
<groupId>org.mockito</groupId>
254+
<artifactId>mockito-core</artifactId>
255+
<version>5.6.0</version>
256+
</dependency>
257+
234258
</dependencies>
235259

236260

0 commit comments

Comments
 (0)