mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-26 17:24:45 +00:00
* [ACA-4652] Run unit tests as one GH job, add e2es as GH job * [ACA-4652] Fix yaml syntax * [ACA-4652] Fix if syntax * [ACA-4652] Correct syntax * [ACA-4652] Correct syntax * [ACA-4652] Each job must contain uses or run * [ACA-4652] Migrate uploading/downloading build artifacts, migrate before install * [ACA-4652] Fix bad substitution * [ACA-4652] Fix string merging in bash * [ACA-4652] Bash fix * [ACA-4652] Install aws before downloading/uploading artifacts * [ACA-4652] Add setup with aws config action * [ACA-4652] Add aws-region * [ACA-4652] Use aws default region * [ACA-4652] Log github event * [ACA-4652] Log workflow run * [ACA-4652] Fix commit logging * [ACA-4652] Use action to get current commit msg * [ACA-4652] Add correct version of build tools * [ACA-4652] Get commit msg from env * [ACA-4652] Get commit msg in the same job * [ACA-4652] Final commit msg test * [ACA-4652] Fix logging * [ACA-4652] Cleanup commit msg, correct s3 bucket * [link-adf:AAE-12767] Test adf linking * [link-adf:AAE-12767] Test adf linking finalize * [link-adf:AAE-12767] Tweak finalize job * [link-adf:AAE-12767] Get commit msg in before install * [link-adf:AAE-12767] Add missing adfprod configs * [ACA-4652] Migrate before and after e2e scripts to GHA * [ACA-4652] Add before e2e logging * [ACA-4652] Use new GH secrets * [ACA-4652] Remove logs, add envsub * [ACA-4652] Install envsub globally * [ACA-4652] Log replaced config * [ACA-4652] Add missing env variable * [ACA-4652] Add e2e run as GH action * [ACA-4652] Remove logging, fix download path * [ACA-4652] Disable protractor smartrunner artifact * [ACA-4652] Install webdriver-manager * [ACA-4652] Disable failing download on Travis, npm ci in before e2e * [ACA-4652] Missing shell * [ACA-4652] Restore artifact download * [ACA-4652] Download smartrunner artifact only when present * [ACA-4652] Check run attempt * [ACA-4652] Correct attempt check * [ACA-4652] Stop running e2es in Travis for now * [ACA-4652] Run Travis e2es again, add test suite id * [ACA-4652] Add test suite id to after e2e action * [ACA-4652] Remove additional install * [ACA-4652] CR fixes, remove some Travis config that is already migrated * [ACA-4652] Cleanup setup leftover * [ACA-4652] Propagate aws credentials * [ACA-4652] Fix aws default region * [ACA-4652] Misspelled variable fix * [ACA-4652] Propagate aws region * [ACA-4652] Rename PR workflow * [ACA-4652] Download artifact only if bucket exists * [ACA-4652] Run test even is aws bucket doesn't exist * [ACA-4652] Fix aws download error * [ACA-4652] Check if file exists before downloading * [ACA-4652] Remove uploading/downloading e2e artifact after successful run * [ACA-4652] Add missing check to finalize stage
49 lines
1.9 KiB
YAML
49 lines
1.9 KiB
YAML
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: Alfresco/alfresco-build-tools/.github/actions/get-commit-message@v1.35.0
|
|
- name: setup variables
|
|
shell: bash
|
|
run: |
|
|
echo "BUILD_OPTS=--configuration=production,e2e" >> $GITHUB_ENV
|
|
echo "TEST_OPTS=" >> $GITHUB_ENV
|
|
echo "E2E_PROTRACTOR_OPTS=" >> $GITHUB_ENV
|
|
echo "E2E_TSCONFIG=tsconfig.e2e.json" >> $GITHUB_ENV
|
|
echo "GIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
|
echo "SMART_RUNNER_DIRECTORY=.protractor-smartrunner" >> $GITHUB_ENV
|
|
echo "BASE_HASH=.protractor-smartrunner" >> $GITHUB_ENV
|
|
echo "HEAD_HASH=HEAD" >> $GITHUB_ENV
|
|
- name: setup S3 caching
|
|
shell: bash
|
|
run: |
|
|
S3_DBP_PATH="s3://alfresco-travis-builds/aca"
|
|
if [ "${{ github.event_name }}" == "push" ]; then
|
|
BRANCH_NAME=${GITHUB_REF##*/}
|
|
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/$BRANCH_NAME"
|
|
elif [ "${{ github.event_name }}" == "pull_request" ]; then
|
|
BRANCH_NAME=${GITHUB_BASE_REF}
|
|
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/$BRANCH_NAME"
|
|
echo "BASE_HASH=origin/$BRANCH_NAME" >> $GITHUB_ENV
|
|
elif [ "${TRAVIS_EVENT_TYPE}" == "schedule" ]; then
|
|
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/cron"
|
|
else
|
|
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
|