From 2d8b64581af2ae365251fc87ad2d94663983009d Mon Sep 17 00:00:00 2001 From: Marco Carrozzo Date: Thu, 15 Dec 2022 18:26:37 +0100 Subject: [PATCH] devel: pipe. nx debug --- .github/actions/share-env-vars/action.yml | 1 + .github/variables/variables.yml | 43 +++++++++++++++++++++++ .github/workflows/cron.yml | 8 ++--- .github/workflows/release.yml | 21 ++++++----- 4 files changed, 58 insertions(+), 15 deletions(-) create mode 100644 .github/actions/share-env-vars/action.yml create mode 100644 .github/variables/variables.yml diff --git a/.github/actions/share-env-vars/action.yml b/.github/actions/share-env-vars/action.yml new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/.github/actions/share-env-vars/action.yml @@ -0,0 +1 @@ + diff --git a/.github/variables/variables.yml b/.github/variables/variables.yml new file mode 100644 index 0000000000..7152d2753d --- /dev/null +++ b/.github/variables/variables.yml @@ -0,0 +1,43 @@ +env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + GITHUB_BRANCH: ${{ github.ref_name }} + TRAVIS_BUILD_DIR: ${{ github.workspace }} + TRAVIS_COMMIT: ${{ github.sha }} + BUILD_ID: ${{ github.run_id }} + TRAVIS_RUN_NUMBER: ${{ github.run_attempt }} + TRAVIS_BUILD_NUMBER: github-run-${{ github.run_id }} + JOB_ID: ${{ github.run_id }} + PROXY_HOST_BPM: ${{ secrets.E2E_HOST }} + E2E_HOST_APA: ${{ secrets.E2E_HOST_APA }} + E2E_HOST: ${{ secrets.E2E_HOST }} + E2E_USERNAME: ${{ secrets.E2E_ADMIN_EMAIL_IDENTITY }} + E2E_PASSWORD: ${{ secrets.E2E_PASSWORD }} + E2E_ADMIN_EMAIL_IDENTITY: ${{ secrets.E2E_ADMIN_EMAIL_IDENTITY }} + E2E_ADMIN_PASSWORD_IDENTITY: ${{ secrets.E2E_ADMIN_PASSWORD_IDENTITY }} + USERNAME_ADF: ${{ secrets.E2E_USERNAME }} + PASSWORD_ADF: ${{ secrets.E2E_PASSWORD }} + URL_HOST_ADF: ${{ secrets.URL_HOST_ADF }} + IDENTITY_ADMIN_EMAIL: ${{ secrets.E2E_ADMIN_EMAIL_IDENTITY }} + IDENTITY_ADMIN_PASSWORD: ${{ secrets.E2E_ADMIN_PASSWORD_IDENTITY }} + AWS_S3_BUCKET_ACTIVITI_LICENSE: ${{ secrets.AWS_S3_BUCKET_ACTIVITI_LICENSE }} + HOST_SSO: ${{ secrets.HOST_SSO }} + LOG_LEVEL: "ERROR" + E2E_LOG_LEVEL: "ERROR" + E2E_MODELER_USERNAME: ${{ secrets.E2E_MODELER_USERNAME }} + E2E_MODELER_PASSWORD: ${{ secrets.E2E_MODELER_PASSWORD }} + EXTERNAL_ACS_HOST: ${{ secrets.EXTERNAL_ACS_HOST }} + E2E_DEVOPS_USERNAME: ${{ secrets.E2E_DEVOPS_USERNAME }} + E2E_DEVOPS_PASSWORD: ${{ secrets.E2E_DEVOPS_PASSWORD }} + USERNAME_SUPER_ADMIN_ADF: ${{ secrets.USERNAME_SUPER_ADMIN_ADF }} + PASSWORD_SUPER_ADMIN_ADF: ${{ secrets.PASSWORD_SUPER_ADMIN_ADF }} + HR_USER: ${{ secrets.HR_USER }} + HR_USER_PASSWORD: ${{ secrets.HR_USER_PASSWORD }} + NPM_REGISTRY_ADDRESS: ${{ secrets.NPM_REGISTRY_ADDRESS }} + NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} + DOCKER_REPOSITORY_USER: ${{ secrets.DOCKER_REPOSITORY_USER }} + DOCKER_REPOSITORY_PASSWORD: ${{ secrets.DOCKER_REPOSITORY_PASSWORD }} + DOCKER_REPOSITORY_DOMAIN: ${{ secrets.DOCKER_REPOSITORY_DOMAIN }} + DOCKER_REPOSITORY_STORYBOOK: "${{ secrets.DOCKER_REPOSITORY_DOMAIN }}/alfresco/storybook" + DOCKER_REPOSITORY: "${{ secrets.DOCKER_REPOSITORY_DOMAIN }}/alfresco/demo-shell" + NODE_OPTIONS: "--max-old-space-size=5120" \ No newline at end of file diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 4210237fe5..4945110ce1 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -50,15 +50,11 @@ env: NODE_OPTIONS: "--max-old-space-size=5120" jobs: - # run-e2e: - # uses: ./.github/workflows/pull-request.yml - # secrets: inherit - release: - uses: ./.github/workflows/release.yml + run-e2e: + uses: ./.github/workflows/pull-request.yml secrets: inherit npm-check-bundle: - # needs: [ test-everything ] timeout-minutes: 10 runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8fe9746083..c2bac9fb06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,9 +77,10 @@ jobs: - uses: ./.github/actions/setup with: enable-cache: false - - name: install nx - run: npm ci - - run: nx run cli:bundle + - name: install nx and cli + run: | + npm ci + nx run cli:bundle - name: push Demoshell docker image run: | nx build demoshell --configuration production @@ -100,9 +101,10 @@ jobs: - uses: ./.github/actions/setup with: enable-cache: false - - name: install nx - run: npm ci - - run: nx run cli:bundle + - name: install nx and cli + run: | + npm ci + nx run cli:bundle - name: push Storybook docker image run: | nx run stories:build-storybook --configuration ci @@ -123,9 +125,10 @@ jobs: - uses: ./.github/actions/setup with: enable-cache: false - - name: install nx - run: npm ci - - run: nx run cli:bundle + - name: install nx and cli + run: | + npm ci + nx run cli:bundle - name: nx build run: | set -u;