-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cleanup GHA * remove unused parameters * consolidate actions, improve readability * remove unused files * restore fetch depth
- Loading branch information
1 parent
509bb5e
commit c3b9886
Showing
16 changed files
with
68 additions
and
154 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,30 +1,9 @@ | ||
name: "After e2e" | ||
description: "After e2e" | ||
|
||
env: | ||
storage_file: "./storage-state/AdminUserState.json" | ||
|
||
inputs: | ||
id: | ||
description: 'test suite id' | ||
required: true | ||
type: number | ||
aws-access-key-id: | ||
description: 'aws access key id' | ||
required: true | ||
type: string | ||
aws-secret-access-key: | ||
description: 'aws secret access key' | ||
required: true | ||
type: string | ||
aws-region: | ||
description: 'aws region' | ||
required: true | ||
type: string | ||
description: "Runs cleanup tasks after e2e run" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Remove storage file | ||
shell: bash | ||
run: rm -f ${{ env.storage_file }} | ||
run: rm -f ./storage-state/AdminUserState.json |
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
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,35 +1,29 @@ | ||
name: "Before install and variables setup" | ||
description: "Before install and variables setup" | ||
|
||
inputs: | ||
artifact: | ||
description: 'path to the artifact to archieve (tar.bz2) and upload (like ./dist)' | ||
required: true | ||
type: string | ||
output: | ||
description: 'the S3 object to copy it to, like: s3://bucket-name/folder/whatever.tar.bz2' | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: ./.github/actions/setup | ||
|
||
- name: setup S3 caching | ||
shell: bash | ||
run: | | ||
S3_DBP_PATH="s3://alfresco-travis-builds/aca" | ||
if [ "${{ github.event_name }}" == "push" ]; then | ||
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/$BRANCH_NAME" | ||
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/$BRANCH_NAME" | ||
elif [ "${{ github.event_name }}" == "pull_request" ]; then | ||
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/$BRANCH_NAME" | ||
echo "BASE_HASH=origin/$BRANCH_NAME" >> $GITHUB_ENV | ||
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/$BRANCH_NAME" | ||
echo "BASE_HASH=origin/$BRANCH_NAME" >> $GITHUB_ENV | ||
elif [ "${{ github.event_name }}" == "schedule" ]; then | ||
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/cron" | ||
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/cron" | ||
else | ||
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/api" | ||
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/api" | ||
fi | ||
echo "S3_DBP_FOLDER="$S3_DBP_ROOT_FOLDER/${{ github.run_id }}"" >> $GITHUB_ENV | ||
- name: ADF linking | ||
if: ${{ github.event_name == 'pull_request'}} | ||
uses: ./.github/actions/adf-linking |
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
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
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
File renamed without changes.
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
File renamed without changes.
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
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 |
---|---|---|
|
@@ -24,25 +24,24 @@ jobs: | |
name: Trigger ACA Upstream | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
|
||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
with: | ||
username: ${{ vars.BOT_GITHUB_USERNAME }} | ||
email: ${{ vars.BOT_GITHUB_EMAIL }} | ||
global: true | ||
- name: Configure Git Author | ||
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
with: | ||
username: ${{ vars.BOT_GITHUB_USERNAME }} | ||
email: ${{ vars.BOT_GITHUB_EMAIL }} | ||
global: true | ||
|
||
- name: Trigger Upstream | ||
shell: bash | ||
run: | | ||
npm install github-api | ||
./scripts/gh/update/update-project.sh -p $GH_BUILD_NUMBER -t $GH_TOKEN -v alpha -c $GH_COMMIT -r ${{ inputs.repo_to_update || 'alfresco-applications' }} | ||
- name: Trigger Upstream | ||
shell: bash | ||
run: | | ||
npm install github-api | ||
./scripts/gh/update/update-project.sh -p $GH_BUILD_NUMBER -t $GH_TOKEN -v alpha -c $GH_COMMIT -r ${{ inputs.repo_to_update || 'alfresco-applications' }} |
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 |
---|---|---|
|
@@ -166,11 +166,6 @@ jobs: | |
with: | ||
options: "--suite=${{ matrix.e2e-suites.name }}" | ||
- uses: ./.github/actions/after-e2e | ||
with: | ||
id: ${{ matrix.e2e-suites.id }} | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
|
||
e2es-playwright: | ||
needs: [lint, build, unit-tests] | ||
|
@@ -205,24 +200,13 @@ jobs: | |
options: "e2e/playwright/tests/folder-rules/playwright.config.ts" | ||
test-runner: playwright | ||
- uses: ./.github/actions/after-e2e | ||
with: | ||
id: 15 | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
|
||
finalize: | ||
if: ${{ always() }} | ||
needs: [lint, build, unit-tests, e2es, e2es-playwright] | ||
name: 'Finalize' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
|
||
- name: Check previous jobs status | ||
if: >- | ||
${{ | ||
|
@@ -231,6 +215,14 @@ jobs: | |
}} | ||
run: exit 1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Extract commit message | ||
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
|
||
- name: Check ADF link | ||
shell: bash | ||
run: | | ||
|
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,18 +1,21 @@ | ||
on: | ||
name: Automatic Rebase | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
name: Automatic Rebase | ||
|
||
jobs: | ||
rebase: | ||
name: Rebase | ||
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the latest code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Automatic Rebase | ||
uses: cirrus-actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout the latest code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Automatic Rebase | ||
uses: cirrus-actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.