mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
ACS-3465 Add AGS-Community-Rest-API-Tests
This commit is contained in:
82
.github/workflows/ci.yml
vendored
82
.github/workflows/ci.yml
vendored
@@ -1,6 +1,12 @@
|
|||||||
name: Alfresco Community Repo CI
|
name: Alfresco Community Repo CI
|
||||||
|
|
||||||
on: push
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- master
|
||||||
|
- release/**
|
||||||
|
workflow_call:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Both variables are required to be set before the release process starts.
|
# Both variables are required to be set before the release process starts.
|
||||||
@@ -330,7 +336,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
cache: "maven"
|
- name: "Setup Maven Action"
|
||||||
|
uses: s4u/setup-maven-action@v1.5.0
|
||||||
|
with:
|
||||||
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
maven-version: 3.5.4
|
||||||
- name: "build"
|
- name: "build"
|
||||||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
run: bash ./scripts/travis/build.sh
|
run: bash ./scripts/travis/build.sh
|
||||||
@@ -345,14 +355,13 @@ jobs:
|
|||||||
run: mvn --settings .travis.settings.xml -B test -pl :alfresco-governance-services-automation-community-rest-api -am -DfailIfNoTests=false -Dskip.automationtests=false -Pags
|
run: mvn --settings .travis.settings.xml -B test -pl :alfresco-governance-services-automation-community-rest-api -am -DfailIfNoTests=false -Dskip.automationtests=false -Pags
|
||||||
- run: bash amps/ags/travis/scripts/getLogs.sh
|
- run: bash amps/ags/travis/scripts/getLogs.sh
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
- run: mkdir -p deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests
|
- shell: bash
|
||||||
if: ${{ always() }}
|
|
||||||
- run: mv "alfresco.log" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
|
||||||
if: ${{ always() }}
|
|
||||||
- run: mv "solr.log" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
|
||||||
if: ${{ always() }}
|
|
||||||
- run: mv "./amps/ags/rm-automation/rm-automation-community-rest-api/target/reports" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
|
run: |
|
||||||
|
mkdir -p deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests
|
||||||
|
mv "alfresco.log" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
||||||
|
mv "solr.log" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
||||||
|
mv "./amps/ags/rm-automation/rm-automation-community-rest-api/target/reports" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
||||||
- name: "Configure AWS credentials"
|
- name: "Configure AWS credentials"
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
@@ -363,58 +372,3 @@ jobs:
|
|||||||
- name: "Upload build artifacts to Amazon S3"
|
- name: "Upload build artifacts to Amazon S3"
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
run: aws s3 cp --recursive ./deploy_dir s3://ags-travis-artifacts
|
run: aws s3 cp --recursive ./deploy_dir s3://ags-travis-artifacts
|
||||||
|
|
||||||
Push-to-Nexus:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: >
|
|
||||||
(github.ref_name == 'master' || contains(github.ref_name, 'release/')) &&
|
|
||||||
github.event_name != 'pull_request' &&
|
|
||||||
! contains(github.event.head_commit.message, '[no release]')
|
|
||||||
needs:
|
|
||||||
- AGS-Community-Rest-API-Tests
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: mkdir -p $HOME/.m2
|
|
||||||
- run: cp .travis.settings.xml $HOME/.m2
|
|
||||||
- name: "Login to Quay.io"
|
|
||||||
uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
registry: quay.io
|
|
||||||
username: ${{ secrets.QUAY_USERNAME }}
|
|
||||||
password: ${{ secrets.QUAY_PASSWORD }}
|
|
||||||
- name: "Set up Java"
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
|
||||||
distribution: "temurin"
|
|
||||||
cache: "maven"
|
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v1.12.0
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.BOT_GITHUB_USERNAME }}
|
|
||||||
email: ${{ secrets.BOT_GITHUB_EMAIL }}
|
|
||||||
- name: "Verify release tag"
|
|
||||||
run: bash ./scripts/travis/verify_release_tag.sh
|
|
||||||
- name: "Release"
|
|
||||||
run: bash ./scripts/gh-actions/maven_release.sh
|
|
||||||
env:
|
|
||||||
BUILD_NUMBER: ${{ github.run_number }}
|
|
||||||
GIT_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }}
|
|
||||||
GIT_PASSWORD: ${{ secrets.BOT_GITHUB_PASSWORD }}
|
|
||||||
Update-downstream:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: >
|
|
||||||
(github.ref_name == 'master' || contains(github.ref_name, 'release/')) &&
|
|
||||||
github.event_name != 'pull_request' &&
|
|
||||||
! contains(github.event.head_commit.message, '[no downstream]')
|
|
||||||
needs:
|
|
||||||
- AGS-Community-Rest-API-Tests
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: mkdir -p $HOME/.m2
|
|
||||||
- run: cp .travis.settings.xml $HOME/.m2
|
|
||||||
- run: bash ./scripts/gh-actions/update_downstream.sh
|
|
||||||
env:
|
|
||||||
BRANCH: ${{ github.ref_name }}
|
|
||||||
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
|
|
||||||
GIT_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }}
|
|
||||||
GIT_PASSWORD: ${{ secrets.BOT_GITHUB_PASSWORD }}
|
|
73
.github/workflows/master_release.yml
vendored
Normal file
73
.github/workflows/master_release.yml
vendored
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
name: Master/Release branch workflow
|
||||||
|
|
||||||
|
env:
|
||||||
|
JAVA_VERSION: "17"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- release/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run-ci:
|
||||||
|
uses: ./.github/workflows/ci.yml
|
||||||
|
secrets: inherit
|
||||||
|
Push-to-Nexus:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
always() &&
|
||||||
|
(needs.run-ci.result == 'skipped' || needs.run-ci.result == 'success') &&
|
||||||
|
(github.ref_name == 'master' || contains(github.ref_name, 'release/')) &&
|
||||||
|
github.event_name != 'pull_request' &&
|
||||||
|
! contains(github.event.head_commit.message, '[no release]')
|
||||||
|
needs:
|
||||||
|
- AGS-Community-Rest-API-Tests
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- run: mkdir -p $HOME/.m2
|
||||||
|
- run: cp .travis.settings.xml $HOME/.m2
|
||||||
|
- name: "Login to Quay.io"
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: quay.io
|
||||||
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
|
- name: "Set up Java"
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
distribution: "temurin"
|
||||||
|
cache: "maven"
|
||||||
|
- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v1.12.0
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.BOT_GITHUB_USERNAME }}
|
||||||
|
email: ${{ secrets.BOT_GITHUB_EMAIL }}
|
||||||
|
- name: "Verify release tag"
|
||||||
|
run: bash ./scripts/travis/verify_release_tag.sh
|
||||||
|
- name: "Release"
|
||||||
|
run: bash ./scripts/gh-actions/maven_release.sh
|
||||||
|
env:
|
||||||
|
BUILD_NUMBER: ${{ github.run_number }}
|
||||||
|
GIT_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }}
|
||||||
|
GIT_PASSWORD: ${{ secrets.BOT_GITHUB_PASSWORD }}
|
||||||
|
Update-downstream:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
always() &&
|
||||||
|
(needs.run-ci.result == 'skipped' || needs.run-ci.result == 'success') &&
|
||||||
|
(github.ref_name == 'master' || contains(github.ref_name, 'release/')) &&
|
||||||
|
github.event_name != 'pull_request' &&
|
||||||
|
! contains(github.event.head_commit.message, '[no downstream]')
|
||||||
|
needs:
|
||||||
|
- AGS-Community-Rest-API-Tests
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- run: mkdir -p $HOME/.m2
|
||||||
|
- run: cp .travis.settings.xml $HOME/.m2
|
||||||
|
- run: bash ./scripts/gh-actions/update_downstream.sh
|
||||||
|
env:
|
||||||
|
BRANCH: ${{ github.ref_name }}
|
||||||
|
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
|
||||||
|
GIT_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }}
|
||||||
|
GIT_PASSWORD: ${{ secrets.BOT_GITHUB_PASSWORD }}
|
Reference in New Issue
Block a user