Skip to content

Commit

Permalink
Test: Create minimal unit test for Maven jobs
Browse files Browse the repository at this point in the history
This change creates a minimal pom.xml for unit testing of Maven jobs
and creates a test job for the Maven Verify workflow. The intent here
is to create a small unit test that can quickly validate Maven
workflows and catch potential issues that maybe missed by a linter.

Signed-off-by: Thanh Ha <[email protected]>
  • Loading branch information
zxiiro committed Jul 24, 2024
1 parent 4900049 commit eacb52f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/zz-test-verify-maven.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2024 The Linux Foundation

name: Verify Maven Workflows

# yamllint disable-line rule:truthy
on: [push, pull_request]

jobs:
test-maven-verify:
uses: ./.github/workflows/compose-maven-verify.yaml
with:
GERRIT_BRANCH: ${{ github.ref }}
GERRIT_CHANGE_ID: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b
MVN_POM_FILE: test/maven-project/pom.xml
11 changes: 11 additions & 0 deletions test/maven-project/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!--
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2024 The Linux Foundation
-->
<project>
<modelVersion>4.0.0</modelVersion>

<groupId>org.linuxfoundation.test</groupId>
<artifactId>maven-test-app</artifactId>
<version>1</version>
</project>

0 comments on commit eacb52f

Please sign in to comment.