Skip to content

Commit

Permalink
feat: expose with_cache parameters to test jobs (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaryt authored Oct 11, 2022
1 parent faeb1fd commit 6f902c6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/jobs/parallel_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ parameters:
description: If following standard maven conventions this does not need to be changed.
type: string
default: "src/test/java"
verify_dependencies:
description: Verify dependencies are valid and available from public sources
type: boolean
default: true
dependency_plugin_version:
description: Specify the Maven Dependency Plugin
type: string
default: "3.1.2"

steps:
- checkout
- run:
Expand All @@ -61,6 +70,8 @@ steps:
settings_file: << parameters.settings_file >>
app_src_directory: << parameters.app_src_directory >>
maven_command: << parameters.maven_command >>
dependency_plugin_version: << parameters.dependency_plugin_version >>
verify_dependencies: << parameters.verify_dependencies >>
steps:
- run:
name: Run Tests
Expand Down
10 changes: 10 additions & 0 deletions src/jobs/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,23 @@ parameters:
description: Specify a custom path for invoking maven
type: string
default: mvn
verify_dependencies:
description: Verify dependencies are valid and available from public sources
type: boolean
default: true
dependency_plugin_version:
description: Specify the Maven Dependency Plugin
type: string
default: "3.1.2"

steps:
- checkout
- with_cache:
settings_file: << parameters.settings_file >>
app_src_directory: << parameters.app_src_directory >>
maven_command: << parameters.maven_command >>
dependency_plugin_version: << parameters.dependency_plugin_version >>
verify_dependencies: << parameters.verify_dependencies >>
steps:
- run:
name: Run Tests
Expand Down

0 comments on commit 6f902c6

Please sign in to comment.