mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
AAE-12357: update unit test name (#8197)
This commit is contained in:
parent
2a45c1e7a3
commit
2d386c5890
34
.github/workflows/pull-request.yml
vendored
34
.github/workflows/pull-request.yml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
description: 'enable dry-run on artifact push'
|
description: 'enable dry-run on artifact push'
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
branches:
|
branches:
|
||||||
@ -65,38 +65,38 @@ env:
|
|||||||
DOCKER_REPOSITORY: "${{ secrets.DOCKER_REPOSITORY_DOMAIN }}/alfresco/demo-shell"
|
DOCKER_REPOSITORY: "${{ secrets.DOCKER_REPOSITORY_DOMAIN }}/alfresco/demo-shell"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-if-pr-is-approved:
|
check-if-pr-is-approved:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Check if PR is approved
|
- name: Check if PR is approved
|
||||||
id: action
|
id: action
|
||||||
if: ${{ github.event_name != 'schedule' }}
|
if: ${{ github.event_name != 'schedule' }}
|
||||||
uses: kamatama41/get-pr-number-action@v0
|
uses: kamatama41/get-pr-number-action@v0
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Show the number
|
- name: Show the number
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
DEVEL_FLAG: false #put it to true if you need to develop the pipeline on your own branch. before the final merge put it to false
|
DEVEL_FLAG: false #put it to true if you need to develop the pipeline on your own branch. before the final merge put it to false
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ${{ github.event_name != 'schedule' }}
|
if: ${{ github.event_name != 'schedule' }}
|
||||||
run: |
|
run: |
|
||||||
if [[ "$DEVEL_FLAG" = false ]] ; then
|
if [[ "$DEVEL_FLAG" = false ]] ; then
|
||||||
echo "PR number is: ${{ steps.action.outputs.number }}"
|
echo "PR number is: ${{ steps.action.outputs.number }}"
|
||||||
prNumber=${{ steps.action.outputs.number }}
|
prNumber=${{ steps.action.outputs.number }}
|
||||||
checkApproval=$(gh api /repos/Alfresco/alfresco-ng2-components/pulls/$prNumber/reviews | jq '.[] | select(.state == "APPROVED") | .user.login')
|
checkApproval=$(gh api /repos/Alfresco/alfresco-ng2-components/pulls/$prNumber/reviews | jq '.[] | select(.state == "APPROVED") | .user.login')
|
||||||
if [[ $checkApproval ]]; then
|
if [[ $checkApproval ]]; then
|
||||||
echo "PR approved"
|
echo "PR approved"
|
||||||
else
|
else
|
||||||
echo "PR not approved yet"
|
echo "PR not approved yet"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "you are on your branch: skipping the check. REMEMBER to put DEVEL_FLAG to FALSE before the final merge!"
|
echo "you are on your branch: skipping the check. REMEMBER to put DEVEL_FLAG to FALSE before the final merge!"
|
||||||
fi
|
fi
|
||||||
@ -135,7 +135,7 @@ jobs:
|
|||||||
exclude: "insights,core,extensions,process-services,process-services-cloud"
|
exclude: "insights,core,extensions,process-services,process-services-cloud"
|
||||||
- name: core
|
- name: core
|
||||||
exclude: "insights,content-services,process-services,process-services-cloud"
|
exclude: "insights,content-services,process-services,process-services-cloud"
|
||||||
- name: insights
|
- name: insights and process-services
|
||||||
exclude: "core,extensions,content-services,process-services-cloud"
|
exclude: "core,extensions,content-services,process-services-cloud"
|
||||||
- name: process-cloud
|
- name: process-cloud
|
||||||
exclude: "insights,core,extensions,content-services,process-services"
|
exclude: "insights,core,extensions,content-services,process-services"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user