-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,20 @@ | ||
name: Alfresco Connector for Hyland Experience Insight CI | ||
name: Veracode and Nightly Tests run | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- feature/** | ||
- fix/** | ||
- master | ||
- release/** | ||
push: | ||
branches: | ||
- feature/** | ||
- fix/** | ||
- master | ||
- release/** | ||
schedule: | ||
- cron: "0 0 * * *" # Runs every night at midnight | ||
|
||
env: | ||
# Both variables are required to be set before the release process starts . | ||
# As the release is triggered by a commit message with "[release]" keyword on a release branch, | ||
# setting these variables to new values can be done in the same commit and will indicate the release and the dev versions in it. | ||
DEVELOPMENT_VERSION: "1.0.2-SNAPSHOT" # The version that will be set in pom files after the release (next dev version) | ||
RELEASE_VERSION: "1.0.1" # The version of the release (tag). | ||
DEVELOPMENT_VERSION: "1.0.2-SNAPSHOT" | ||
RELEASE_VERSION: "1.0.1" | ||
GITHUB_ACTIONS_DEPLOY_TIMEOUT: 60 | ||
MAVEN_CLI_OPTS: "-B -e -fae -V -DinstallAtEnd=true -DfailIfNoTests=false -U -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Pdistribution " | ||
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | ||
|
@@ -33,6 +26,8 @@ env: | |
jobs: | ||
pre_commit: | ||
runs-on: ubuntu-latest | ||
if: > | ||
(github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'schedule' || github.actor == 'dependabot[bot]') | ||
outputs: | ||
java_version: ${{ env.JAVA_VERSION }} | ||
java_version_supported_by_repo: ${{ env.JAVA_VERSION_SUPPORTED_BY_REPO }} | ||
|
@@ -53,7 +48,7 @@ jobs: | |
- pre_commit | ||
runs-on: ubuntu-latest | ||
if: > | ||
(github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'schedule' || github.event_name == 'pull_request' || github.actor == 'dependabot[bot]') && | ||
(github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'schedule' || github.actor == 'dependabot[bot]') && | ||
!contains(github.event.head_commit.message, '[skip build]') | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -66,19 +61,15 @@ jobs: | |
|
||
veracode_sast: | ||
name: "Pipeline SAST Scan" | ||
runs-on: ubuntu-latest | ||
needs: | ||
- pre_commit | ||
runs-on: ubuntu-latest | ||
if: > | ||
(github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'pull_request' || github.event_name == 'schedule') && | ||
(github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'schedule') && | ||
github.actor != 'dependabot[bot]' && | ||
!contains(github.event.head_commit.message, '[skip build]') | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: changed-files | ||
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
with: | ||
write-list-to-env: true | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
with: | ||
|
@@ -108,6 +99,7 @@ jobs: | |
nightly_tests: | ||
name: "Run nightly tests" | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'schedule' | ||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v4 | ||
|