Skip to content

Commit

Permalink
feat: updated pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
PWS-TE committed Jan 16, 2025
1 parent 9b238d0 commit 3ef1130
Showing 1 changed file with 1 addition and 48 deletions.
49 changes: 1 addition & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ on:
- fix/**
- master
- release/**
schedule:
- cron: "0 0 * * *" # Runs every night at midnight
branches:
- master

env:
# Both variables are required to be set before the release process starts .
Expand Down Expand Up @@ -87,44 +83,21 @@ jobs:
- name: "Build application"
run: mvn ${{ env.MAVEN_CLI_OPTS }} clean install -DskipTests
- name: "Run SAST Scan"
id: veracode_scan
uses: veracode/[email protected]
with:
vid: ${{ secrets.VERACODE_API_ID }}
vkey: ${{ secrets.VERACODE_API_KEY }}
file: "distribution/target/alfresco-hxinsight-connector-distribution-*.zip"
fail_build: false
project_name: hxinsight-connector
issue_details: true
issue_details: false
veracode_policy_name: Alfresco Default
summary_output: true
summary_output_file: results.json
summary_display: false
baseline_file: baseline.json
- name: "Clean Maven cache"
run: bash ./scripts/ci/cleanup_cache.sh
- name: "Post success message"
if: success()
uses: actions/github-script@v6
with:
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "Veracode SAST Scan passed successfully."
})
- name: "Post failure message"
if: failure()
uses: actions/github-script@v6
with:
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "Veracode SAST Scan failed."
})

pmd_scan:
name: "PMD Scan"
Expand Down Expand Up @@ -256,26 +229,6 @@ jobs:
- name: "Run e2e tests"
run: mvn ${{ env.MAVEN_CLI_OPTS }} verify -pl 'hxinsight-extension,e2e-test' -am -DskipUnitTests -DskipIntegrationTests -Dalfresco-platform.version=${{ matrix.repoVersion }} -Dalfresco-platform.java.version=${{ env.JAVA_VERSION_SUPPORTED_BY_REPO }}

nightly_tests:
name: "Run nightly tests"
runs-on: ubuntu-latest
if: github.event_name == 'schedule'
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: "Set up JDK"
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
- name: "Build application"
run: mvn clean install -DskipTests -pl live-ingester
- name: "Run OpenApi Specification tests"
run: mvn test -Dtest=OpenApiRequestValidationTest -pl live-ingester
- name: "Notify on failure"
if: failure()
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
webhook-url: ${{ secrets.MS_TEAMS_WEBHOOK_URL }}
message: "Nightly tests failed"

push_docker_images:
name: "Push docker images"
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3ef1130

Please sign in to comment.