-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: workflow optimization (#1255)
* build: replace push to main with PR * build: make maven cache reusable between runs * build: improve release branch PR creation * build: run mvn test on feature branches instead of mvn verify
- Loading branch information
1 parent
32dccf0
commit c9fdcf4
Showing
4 changed files
with
60 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,11 +25,18 @@ jobs: | |
secret/data/products/connectors/ci/common ARTIFACTORY_USR; | ||
secret/data/products/connectors/ci/common ARTIFACTORY_PSW; | ||
- name: Restore cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'maven' | ||
|
||
# Use CI Nexus as co-located pull-through cache for Maven artifacts via ~/.m2/settings.xml | ||
- name: 'Create settings.xml' | ||
|
@@ -49,7 +56,7 @@ jobs: | |
node-version: '16' | ||
|
||
- name: Build Connectors | ||
run: mvn --batch-mode clean verify -PcheckFormat | ||
run: mvn --batch-mode clean test -PcheckFormat | ||
|
||
- name: Lint Dockerfile - connector-runtime | ||
uses: hadolint/[email protected] | ||
|