Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CIN-1052] implementing nightly job for OpenApi tests #801

Merged
merged 12 commits into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ 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 @@ -229,6 +233,26 @@ 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
Loading