first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
name: Build
on:
push:
branches:
- 'develop'
- 'release/*'
jobs:
run:
runs-on: ubuntu-16.04
if: startsWith( github.repository, 'elementor/' )
steps:
- name: Checkout source code
uses: actions/checkout@master
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: npm install
- name: Build and Deploy
run: |
npm config set git-tag-version false
if [ "${GITHUB_REF:11}" == "develop" ];
then npm version patch
fi
if [[ "${GITHUB_REF:11:7}" == "release" ]];
then npm version minor
fi
export PLUGIN_VERSION=$(date '+%Y%m%d.%H%M')
export PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g' \
| tr -d '[[:space:]]')
export PLUGIN_ZIP_FILENAME="elementor-${PACKAGE_VERSION}-${PLUGIN_VERSION}.zip"
grunt build
sed -i -E "s/Version: (.*?)/Version: ${PACKAGE_VERSION}-${PLUGIN_VERSION}/g" build/elementor.php
sed -i -E "s/ELEMENTOR_VERSION', '(.*?)'/ELEMENTOR_VERSION', '${PACKAGE_VERSION}-${PLUGIN_VERSION}'/g" build/elementor.php
mv build elementor
zip -r $PLUGIN_ZIP_FILENAME elementor
curl --fail -F "package=@${PLUGIN_ZIP_FILENAME}" "${{ secrets.DEPLOY_BUILDS_ENDPOINT}}&type=core"
echo "PLUGIN_ZIP_FILENAME=${PLUGIN_ZIP_FILENAME}" >> $GITHUB_ENV
- uses: actions/upload-artifact@master
with:
name: ${{ env.PLUGIN_ZIP_FILENAME }}
path: elementor-*.zip

View File

@@ -0,0 +1,27 @@
name: Elementor Tests / Init
on: [push, pull_request_target]
jobs:
run:
if: github.repository_owner == 'elementor'
runs-on: ubuntu-16.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@master
- name: Block non-permitted users
uses: StyleShit/action-whitelist-users@b8abcef5472afd0c7bcfaadf08c70a082437e459
with:
whitelist-file: '.github/workflows/whitelist.txt'
- name: Elementor Tests / Init
env:
TOKEN: ${{ secrets.MAINTAIN_TOKEN }} # GitHub access token to access the remote repo.
REMOTE_TESTS_REPO: ${{ secrets.REMOTE_TESTS_REPO }} # Remote tests repo, e.g. `owner/repo-name`.
HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name || github.repository }} # The HEAD repo that initiated the push/PR.
uses: peter-evans/repository-dispatch@d57191493a947e8da4f7bf3fbc389e5b20f21cdf
with:
token: ${{ env.TOKEN }}
repository: ${{ env.REMOTE_TESTS_REPO }}
event-type: remote-tests
client-payload: '{ "repository": "${{ env.HEAD_REPO }}", "sha": "${{ github.head_ref || github.sha }}", "run_id": "${{ github.run_id }}" }'

View File

@@ -0,0 +1,28 @@
name: JS-Qunit
on: [push, pull_request]
jobs:
Qunit:
runs-on: ubuntu-16.04
if: startsWith( github.repository, 'elementor/' )
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: npm ci
- name: "Grunt Scripts"
run: npx grunt scripts
- name: "Run Qunit"
run: npx grunt karma:unit

View File

@@ -0,0 +1,122 @@
name: Lighthouse
on:
push:
pull_request:
schedule:
- cron: '0 10 * * 0' # run at 10 AM UTC on Sunday
jobs:
build-plugin:
name: Build plugin
runs-on: ubuntu-latest
if: startsWith( github.repository, 'elementor/' )
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm install
- name: Build
run: npx grunt build
- name: Save build to cache
uses: actions/cache@v2
id: restore-build
with:
path: ./build/*
key: ${{ github.sha }}
lighthouse:
name: Lighthouse test - WP ${{ matrix.wpCoreVersion }} on PHP ${{ matrix.phpVersion }}
runs-on: ubuntu-latest
needs: [build-plugin]
strategy:
matrix:
include:
- phpVersion: '8.0'
wpCoreVersion: 'master'
- phpVersion: '7.4'
wpCoreVersion: 'latest'
steps:
- name: Checkout source code
if: matrix.wpCoreVersion != 'master' || github.event_name == 'schedule'
uses: actions/checkout@v2
- name: Install Node.js 14.x
if: matrix.wpCoreVersion != 'master' || github.event_name == 'schedule'
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Restore build from cache
if: matrix.wpCoreVersion != 'master' || github.event_name == 'schedule'
uses: actions/cache@v2
id: restore-build
with:
path: ./build/*
key: ${{ github.sha }}
- name: Update wp-env.json file
if: matrix.wpCoreVersion != 'master' || github.event_name == 'schedule'
env:
PHP_VERSION: ${{ matrix.phpVersion }}
WP_CORE_VERSION: ${{ matrix.wpCoreVersion }}
run: node ./.github/scripts/build-wp-env.js
- name: Install wp-env and lhci
if: matrix.wpCoreVersion != 'master' || github.event_name == 'schedule'
run: npm install --no-package-lock --no-save @wordpress/env@4.0.0 @lhci/cli@0.8.0
- name: Install WordPress environment
if: matrix.wpCoreVersion != 'master' || github.event_name == 'schedule'
run: |
npx wp-env start
# change wp-env folder owner to www-data
sudo chown 33:33 -R ~/wp-env/
npx wp-env run tests-cli "bash -c 'bash elementor-config/import-temapltes.sh'"
- name: WordPress debug information
if: matrix.wpCoreVersion != 'master' || github.event_name == 'schedule'
run: |
npx wp-env run tests-cli "wp core version"
npx wp-env run tests-cli "wp --info"
- name: Run Lighthouse tests
if: matrix.wpCoreVersion != 'master' || github.event_name == 'schedule'
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/run-lighthouse-tests.sh"
- name: Save HTML dumps on failure
if: failure()
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/save-lighthouse-pages-html-dumps.sh"
- name: Upload Lighthouse reports on failure
uses: actions/upload-artifact@v2
if: failure()
with:
name: lighthouseci-reports
path: ${{ github.workspace }}/.lighthouseci/reports/**/*
retention-days: 7
- name: Upload Lighthouse HTML dumps on failure
uses: actions/upload-artifact@v2
if: failure()
with:
name: lighthouseci-htmls
path: ${{ github.workspace }}/.lighthouseci/dumps/**/*
retention-days: 7
- name: Notify slack on failure
if: failure() && github.event_name == 'schedule'
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNEL: ${{ secrets.SLACK_LIGHTHOUSE_CHANNEL }}
SLACK_BOT_NAME: ElementorBot
run: |
MESSAGE_TEXT="@channel Repo: *$GITHUB_REPOSITORY* Workflow: *$GITHUB_WORKFLOW* is FAILED - <$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID|link>"
curl -X POST "https://slack.com/api/chat.postMessage" -d "username=${SLACK_BOT_NAME}&token=${SLACK_TOKEN}&channel=${SLACK_CHANNEL}&text=${MESSAGE_TEXT}&link_names=true"

View File

@@ -0,0 +1,55 @@
name: Lint
on: [push, pull_request]
jobs:
JS-Lint:
runs-on: ubuntu-16.04
if: startsWith( github.repository, 'elementor/' )
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: npm i
- name: Run Lint
run: ./node_modules/eslint/bin/eslint.js .
PHP-Lint:
runs-on: ubuntu-16.04
if: startsWith( github.repository, 'elementor/' )
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Setup PHP 7.4
uses: shivammathur/setup-php@9882bed06691b3a085010c1602ce43ef18f15c5b # v2
with:
php-version: '7.4'
- name: Install Dependencies
run: |
composer global require "squizlabs/php_codesniffer=*"
composer global require wp-coding-standards/wpcs
composer require php-parallel-lint/php-parallel-lint
- name: Run Lint
run: |
export PATH=$HOME/.composer/vendor/bin:$PATH
phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs
phpcs -p -s -n . --standard=./ruleset.xml --extensions=php
- name: Run PHP Syntax Lint
run: |
export PATH=$HOME/.composer/vendor/bin:$PATH
php5.6 vendor/bin/parallel-lint --blame --exclude node_modules --exclude vendor .
php7.0 vendor/bin/parallel-lint --blame --exclude node_modules --exclude vendor .
php7.1 vendor/bin/parallel-lint --blame --exclude node_modules --exclude vendor .
php7.2 vendor/bin/parallel-lint --blame --exclude node_modules --exclude vendor .
php7.3 vendor/bin/parallel-lint --blame --exclude node_modules --exclude vendor .

View File

@@ -0,0 +1,48 @@
name: PHPUnit
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-16.04
if: startsWith( github.repository, 'elementor/' )
strategy:
fail-fast: false
matrix:
wordpress_versions: ['latest', '5.5', '5.4', '5.3']
name: WordPress ${{ matrix.wordpress_versions }}
steps:
- name: Startup MySQL service
run: sudo /etc/init.d/mysql start
- name: Checkout source code
uses: actions/checkout@master
- name: Install Dependencies
run: |
bash bin/install-wp-tests.sh wordpress_test root root localhost ${{ matrix.wordpress_versions }}
wget --quiet -O /tmp/phpunit-5 https://phar.phpunit.de/phpunit-5.phar
wget --quiet -O /tmp/phpunit-6 https://phar.phpunit.de/phpunit-6.phar
wget --quiet -O /tmp/phpunit-7 https://phar.phpunit.de/phpunit-7.phar
- name: PHP5.6
run: php5.6 /tmp/phpunit-5
- name: PHP5.6 - Multisite
run: WP_MULTISITE=1 php5.6 /tmp/phpunit-5
- name: PHP7.0
run: php7.0 /tmp/phpunit-6
- name: PHP7.0 - Multisite
run: WP_MULTISITE=1 php7.0 /tmp/phpunit-6
- name: PHP7.1
run: php7.1 /tmp/phpunit-6
- name: PHP7.1 - Multisite
run: WP_MULTISITE=1 php7.1 /tmp/phpunit-6
- name: PHP7.2
run: php7.2 /tmp/phpunit-6
- name: PHP7.2 - Multisite
run: WP_MULTISITE=1 php7.2 /tmp/phpunit-6
- name: PHP7.3
run: php7.3 /tmp/phpunit-6
- name: PHP7.3 - Multisite
run: WP_MULTISITE=1 php7.3 /tmp/phpunit-6
- name: PHP7.4
run: php7.4 /tmp/phpunit-7
- name: PHP7.4 - Multisite
run: WP_MULTISITE=1 php7.4 /tmp/phpunit-7

View File

@@ -0,0 +1,15 @@
name: PR Linter
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
jobs:
pr_name_lint:
runs-on: ubuntu-latest
if: startsWith( github.repository, 'elementor/' )
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm install --no-package-lock --no-save @commitlint/config-conventional@12.1.1 @commitlint/cli@12.1.1
- name: Run PR name linter
run: echo "${{ github.event.pull_request.title }}" | npx commitlint

View File

@@ -0,0 +1,71 @@
name: Promote Canary Release
on:
workflow_dispatch:
jobs:
update-readme-develop:
if: (github.actor == 'ronkelementor' || github.actor == 'KingYes') && startsWith(github.repository, 'elementor/')
runs-on: ubuntu-16.04
steps:
- name: Checkout develop branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: develop
- name: Bump version
run: |
PACKAGE_VERSION=$(node -p "require('./package.json').version")
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
- name: Push new version to develop
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/remove-readme-beta-tag.sh"
bash "${GITHUB_WORKSPACE}/.github/scripts/update-readme-stable-version.sh"
bash "${GITHUB_WORKSPACE}/.github/scripts/commit-push-bump.sh"
promote:
needs: update-readme-develop
runs-on: ubuntu-16.04
steps:
- name: Checkout master branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: master
- name: Merge develop -> master
uses: devmasx/merge-branch@a1752b9ba42bb417ec19be7dc974e2faf77d3ef2 # v1.3.1
with:
type: now
from_branch: develop
target_branch: master
github_token: ${{ secrets.MAINTAIN_TOKEN }}
- name: Checkout updated master branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: master
- name: Install Dependencies
run: |
PACKAGE_VERSION=$(node -p "require('./package.json').version")
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
npm install
- name: Build
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/build-zip.sh"
- name: Publish to WordPress.org SVN
env:
PLUGIN_VERSION: ${{ env.PACKAGE_VERSION }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/publish-readme-to-wordpress-org.sh"
- name: Upload zip file to GitHub actions artifact
uses: actions/upload-artifact@v2
with:
name: elementor-${{ env.PACKAGE_VERSION }}
path: ${{ github.workspace }}/elementor/**/*

View File

@@ -0,0 +1,153 @@
name: Publish Beta Version
on:
workflow_dispatch:
jobs:
bump-version:
if: (github.actor == 'ronkelementor' || github.actor == 'KingYes') && startsWith(github.repository, 'elementor/')
runs-on: ubuntu-16.04
outputs:
prev_version: ${{ steps.bump_version_step.outputs.prev_version }}
steps:
- name: Checkout master branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: master
- name: Get release branch
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/get-release-branch-name.sh"
- name: Checkout next release branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: ${{ env.RELEASE_BRANCH }}
- name: Bump version
id: bump_version_step
run: |
npm install --no-package-lock --no-save semver@7.3.4
PREV_PACKAGE_VERSION=$(node -p "require('./package.json').last_beta_version")
NEW_PACKAGE_VERSION=$(node ./.github/scripts/update-prerelease-version.js beta)
PACKAGE_VERSION=$(node -p "require('./package.json').last_beta_version")
if [[ $PACKAGE_VERSION == *beta1 ]]
then
PREV_PACKAGE_VERSION=$(node -p "require('./package.json').version")
fi
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
echo "::set-output name=prev_version::${PREV_PACKAGE_VERSION}"
- name: Push new version to beta version to release branch
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/commit-push-bump.sh"
publish:
needs: bump-version
runs-on: ubuntu-16.04
steps:
- name: Checkout master branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: master
- name: Get release branch
env:
INPUT_VERSION: ${{ github.event.inputs.version }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/get-release-branch-name.sh"
- name: Checkout next release branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: ${{ env.RELEASE_BRANCH }}
- name: Install Dependencies
run: |
PACKAGE_VERSION=$(node -p "require('./package.json').last_beta_version")
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
npm ci
- name: Build
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/add-to-readme-beta-tag.sh"
bash "${GITHUB_WORKSPACE}/.github/scripts/update-version-elementor-php.sh"
bash "${GITHUB_WORKSPACE}/.github/scripts/build-zip.sh"
- name: Publish to WordPress.org SVN
env:
PLUGIN_VERSION: ${{ env.PACKAGE_VERSION }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/publish-to-wordpress-org.sh"
- name: Upload zip file to GitHub actions artifact
uses: actions/upload-artifact@v2
with:
name: elementor-${{ env.PACKAGE_VERSION }}
path: ${{ github.workspace }}/elementor/**/*
if-no-files-found: error
- name: Create tag
env:
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/create-git-tag.sh"
- name: Generate changelog
env:
TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
REPOSITORY: ${{ github.repository }}
HEAD_BRANCH_NAME: v${{ env.PACKAGE_VERSION }}
BASE_TAG_NAME: v${{ needs.bump-version.outputs.prev_version }}
run: |
npm install --no-package-lock --no-save @octokit/core@3.4.0
node ./.github/scripts/generate-changelog.js
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.PACKAGE_VERSION }}
files: elementor-*.zip
prerelease: true
body_path: temp-changelog.txt
env:
GITHUB_TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
- name: Read changelog and set current date
run: |
CHANGELOG=$(cat temp-changelog.txt | tr -d '\n')
NOW=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
echo "CHANGELOG=${CHANGELOG}" >> $GITHUB_ENV
echo "NOW=${NOW}" >> $GITHUB_ENV
- name: Parse Jira Keys from changelog
id: jira_keys
uses: HighwayThree/jira-extract-issue-keys@8050830121f3eab19553d2f0c0150873a8d1b51b
with:
commit-message: '${{ env.CHANGELOG }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push Deployment Info to Jira
if: steps.jira_keys.outputs.jira-keys != ''
uses: HighwayThree/jira-upload-deployment-info@7cd4db1e5cc96692fd0b4c688407efd95ae3e610
with:
client-id: '${{ secrets.JIRA_CLIENT_ID }}'
client-secret: '${{ secrets.JIRA_CLIENT_SECRET }}'
cloud-instance-base-url: '${{ secrets.JIRA_CLOUD_INSTANCE_BASE_URL }}'
issue-keys: "${{ steps.jira_keys.outputs.jira-keys }}"
display-name: "${{ env.PACKAGE_VERSION }}"
url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
description: "This PR was merged to the following release(s)"
last-updated: '${{ env.NOW }}'
state: 'successful'
pipeline-id: '${{ github.repository }} ${{ github.workflow }}'
pipeline-url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
environment-id: "${{ env.PACKAGE_VERSION }}"
environment-display-name: "${{ env.PACKAGE_VERSION }}"
environment-type: 'staging'
- name: Notify Slack
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNELS: ${{ secrets.SLACK_CHANNELS }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/slack-notify.sh"

View File

@@ -0,0 +1,173 @@
name: Publish Developer Edition Version
on:
workflow_dispatch:
schedule:
- cron: '0 10 * * *' # run at 10 AM UTC
repository_dispatch:
types: [new-release]
jobs:
bump-version:
if: (github.event_name == 'schedule' || github.event_name == 'repository_dispatch' || github.actor == 'ronkelementor' || github.actor == 'KingYes') && startsWith(github.repository, 'elementor/')
runs-on: ubuntu-16.04
outputs:
cancel_workflow: ${{ steps.step_compare.outputs.cancel_workflow }}
prev_version: ${{ steps.bump_version_step.outputs.prev_version }}
steps:
- name: Check developer-edition GitHub checks
uses: ronkelementor/confirm-checks-action@f1f421685b34aaf0b1933b47cc9344c3a35307d6 # main
with:
github_token: ${{ secrets.MAINTAIN_TOKEN }}
commit: developer-edition
checks: 'JS-Lint,PHP-Lint,Qunit,Lighthouse test - WP latest on PHP 7.4'
- name: Checkout master branch
if: github.event_name == 'repository_dispatch' && github.event.action == 'new-release'
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: master
- name: Sync developer-edition branch
if: github.event_name == 'repository_dispatch' && github.event.action == 'new-release'
env:
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/sync-developer-edition-branch.sh"
- name: Checkout developer-edition branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: developer-edition
- name: Compare last tag to developer-edition head
id: step_compare
if: github.event_name != 'repository_dispatch'
shell: bash +e {0}
env:
TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
REPOSITORY: ${{ github.repository }}
HEAD_BRANCH_NAME: developer-edition
run: |
npm install --no-package-lock --no-save @octokit/core@3.4.0
LAST_DEV_TAG_NAME=$(node -p "require('./package.json').last_dev_version")
export BASE_TAG_NAME="v${LAST_DEV_TAG_NAME}"
node ./.github/scripts/compare-tag-to-branch.js
if [ $? -eq 0 ]; then
echo "::set-output name=cancel_workflow::1"
echo "CANCEL_WORKFLOW=1" >> $GITHUB_ENV
fi
- name: Bump version
id: bump_version_step
if: ${{ !env.CANCEL_WORKFLOW }}
run: |
npm install --no-package-lock --no-save semver@7.3.4
PREV_PACKAGE_VERSION=$(node -p "require('./package.json').last_dev_version")
NEW_PACKAGE_VERSION=$(node ./.github/scripts/update-prerelease-version.js dev)
PACKAGE_VERSION=$(node -p "require('./package.json').last_dev_version")
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
echo "::set-output name=prev_version::${PREV_PACKAGE_VERSION}"
- name: Push new version to developer-edition
if: ${{ !env.CANCEL_WORKFLOW }}
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/commit-push-bump.sh"
publish:
if: ${{ !needs.bump-version.outputs.cancel_workflow }}
needs: bump-version
runs-on: ubuntu-16.04
steps:
- name: Checkout developer-edition branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: developer-edition
- name: Install Dependencies
run: |
PACKAGE_VERSION=$(node -p "require('./package.json').last_dev_version")
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
npm ci
- name: Build
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/update-version-elementor-php.sh"
bash "${GITHUB_WORKSPACE}/.github/scripts/build-zip.sh"
- name: Publish to WordPress.org SVN
env:
PLUGIN_VERSION: ${{ env.PACKAGE_VERSION }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/publish-to-wordpress-org.sh"
- name: Upload zip file to GitHub actions artifact
uses: actions/upload-artifact@v2
with:
name: elementor-${{ env.PACKAGE_VERSION }}
path: ${{ github.workspace }}/elementor/**/*
if-no-files-found: error
- name: Create tag
env:
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/create-git-tag.sh"
- name: Generate changelog
env:
TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
REPOSITORY: ${{ github.repository }}
HEAD_BRANCH_NAME: v${{ env.PACKAGE_VERSION }}
BASE_TAG_NAME: v${{ needs.bump-version.outputs.prev_version }}
run: |
npm install --no-package-lock --no-save @octokit/core@3.4.0
node ./.github/scripts/generate-changelog.js
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.PACKAGE_VERSION }}
files: elementor-*.zip
prerelease: true
body_path: temp-changelog.txt
env:
GITHUB_TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
- name: Read changelog and set current date
run: |
CHANGELOG=$(cat temp-changelog.txt | tr -d '\n')
NOW=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
echo "CHANGELOG=${CHANGELOG}" >> $GITHUB_ENV
echo "NOW=${NOW}" >> $GITHUB_ENV
- name: Parse Jira Keys from changelog
id: jira_keys
uses: HighwayThree/jira-extract-issue-keys@8050830121f3eab19553d2f0c0150873a8d1b51b
with:
commit-message: '${{ env.CHANGELOG }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push Deployment Info to Jira
if: steps.jira_keys.outputs.jira-keys != ''
uses: HighwayThree/jira-upload-deployment-info@7cd4db1e5cc96692fd0b4c688407efd95ae3e610
with:
client-id: '${{ secrets.JIRA_CLIENT_ID }}'
client-secret: '${{ secrets.JIRA_CLIENT_SECRET }}'
cloud-instance-base-url: '${{ secrets.JIRA_CLOUD_INSTANCE_BASE_URL }}'
issue-keys: "${{ steps.jira_keys.outputs.jira-keys }}"
display-name: "${{ env.PACKAGE_VERSION }}"
url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
description: "This PR was merged to the following release(s)"
last-updated: '${{ env.NOW }}'
state: 'successful'
pipeline-id: '${{ github.repository }} ${{ github.workflow }}'
pipeline-url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
environment-id: "${{ env.PACKAGE_VERSION }}"
environment-display-name: "${{ env.PACKAGE_VERSION }}"
environment-type: 'staging'
- name: Notify Slack
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNELS: ${{ secrets.SLACK_CHANNELS }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/slack-notify.sh"

View File

@@ -0,0 +1,176 @@
name: Publish Patch Version
on:
workflow_dispatch:
inputs:
canary:
description: 'Canary release (true/false)'
required: true
default: 'false'
jobs:
bump-version:
if: (github.actor == 'ronkelementor' || github.actor == 'KingYes') && startsWith(github.repository, 'elementor/')
runs-on: ubuntu-16.04
outputs:
prev_version: ${{ steps.bump_version_step.outputs.prev_version }}
steps:
- name: Checkout develop branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: develop
- name: Bump version
id: bump_version_step
run: |
npm config set git-tag-version false
PREV_PACKAGE_VERSION=$(node -p "require('./package.json').version")
npm version patch
PACKAGE_VERSION=$(node -p "require('./package.json').version")
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
echo "::set-output name=prev_version::${PREV_PACKAGE_VERSION}"
- name: Update readme.txt file
if: github.event.inputs.canary != 'true'
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/update-readme-stable-version.sh"
- name: Get beta tag
run: |
npm install --no-package-lock --no-save semver@7.3.4
BETA_TAG=$(node ./.github/scripts/get-beta-version.js)
echo "BETA_TAG=${BETA_TAG}" >> $GITHUB_ENV
- name: Add beta tag
if: ${{ env.BETA_TAG }}
env:
PACKAGE_VERSION: ${{ env.BETA_TAG }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/add-to-readme-beta-tag.sh"
- name: Check if readme.txt update
env:
VERSION: ${{ env.PACKAGE_VERSION }}
run: |
npm install --no-package-lock --no-save marked@2.0.6
node ./.github/scripts/get-changelog-from-readme-txt.js
- name: Push new version to develop
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/update-version-elementor-php.sh"
bash "${GITHUB_WORKSPACE}/.github/scripts/commit-push-bump.sh"
publish:
needs: bump-version
runs-on: ubuntu-16.04
steps:
- name: Checkout master branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: master
- name: Merge develop -> master
uses: devmasx/merge-branch@a1752b9ba42bb417ec19be7dc974e2faf77d3ef2 # v1.3.1
with:
type: now
from_branch: develop
target_branch: master
github_token: ${{ secrets.MAINTAIN_TOKEN }}
- name: Checkout updated master branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: master
- name: Install Dependencies
run: |
PACKAGE_VERSION=$(node -p "require('./package.json').version")
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
npm ci
- name: Build
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/build-zip.sh"
- name: Publish to WordPress.org SVN
env:
PLUGIN_VERSION: ${{ env.PACKAGE_VERSION }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/publish-to-wordpress-org.sh"
- name: Upload zip file to GitHub actions artifact
uses: actions/upload-artifact@v2
with:
name: elementor-${{ env.PACKAGE_VERSION }}
path: ${{ github.workspace }}/elementor/**/*
- name: Create tag
env:
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/create-git-tag.sh"
- name: Generate changelog
env:
TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
REPOSITORY: ${{ github.repository }}
HEAD_BRANCH_NAME: v${{ env.PACKAGE_VERSION }}
BASE_TAG_NAME: v${{ needs.bump-version.outputs.prev_version }}
run: |
npm install --no-package-lock --no-save @octokit/core@3.4.0
node ./.github/scripts/generate-changelog.js
- name: Read changelog from readme.txt
env:
VERSION: ${{ env.PACKAGE_VERSION }}
run: |
npm install --no-package-lock --no-save marked@2.0.6
node ./.github/scripts/get-changelog-from-readme-txt.js
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.PACKAGE_VERSION }}
files: elementor-*.zip
body_path: temp-changelog-from-changelog.txt
env:
GITHUB_TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
- name: Read changelog and set current date
run: |
CHANGELOG=$(cat temp-changelog.txt | tr -d '\n')
NOW=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
echo "CHANGELOG=${CHANGELOG}" >> $GITHUB_ENV
echo "NOW=${NOW}" >> $GITHUB_ENV
- name: Parse Jira Keys from changelog
id: jira_keys
uses: HighwayThree/jira-extract-issue-keys@8050830121f3eab19553d2f0c0150873a8d1b51b
with:
commit-message: '${{ env.CHANGELOG }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push Deployment Info to Jira
if: steps.jira_keys.outputs.jira-keys != ''
uses: HighwayThree/jira-upload-deployment-info@7cd4db1e5cc96692fd0b4c688407efd95ae3e610
with:
client-id: '${{ secrets.JIRA_CLIENT_ID }}'
client-secret: '${{ secrets.JIRA_CLIENT_SECRET }}'
cloud-instance-base-url: '${{ secrets.JIRA_CLOUD_INSTANCE_BASE_URL }}'
issue-keys: "${{ steps.jira_keys.outputs.jira-keys }}"
display-name: "${{ env.PACKAGE_VERSION }}"
url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
description: "This PR was merged to the following release(s)"
last-updated: '${{ env.NOW }}'
state: 'successful'
pipeline-id: '${{ github.repository }} ${{ github.workflow }}'
pipeline-url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
environment-id: "${{ env.PACKAGE_VERSION }}"
environment-display-name: "${{ env.PACKAGE_VERSION }}"
environment-type: 'production'
- name: Trigger developer-edition release
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
event-type: new-release
- name: Notify Slack
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNELS: ${{ secrets.SLACK_CHANNELS }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/slack-notify.sh"

View File

@@ -0,0 +1,194 @@
name: Publish Release Version
on:
workflow_dispatch:
inputs:
canary:
description: 'Canary release (true/false)'
required: true
default: 'false'
version:
description: 'Release branch version'
required: false
jobs:
merge-release-branch-to-develop:
if: (github.actor == 'ronkelementor' || github.actor == 'KingYes') && startsWith(github.repository, 'elementor/')
runs-on: ubuntu-16.04
steps:
- name: Checkout master branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: master
- name: Get release branch
env:
INPUT_VERSION: ${{ github.event.inputs.version }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/get-release-branch-name.sh"
- name: Checkout release branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: ${{ env.RELEASE_BRANCH }}
- name: Merge release -> develop
uses: devmasx/merge-branch@a1752b9ba42bb417ec19be7dc974e2faf77d3ef2 # v1.3.1
with:
type: now
from_branch: ${{ env.RELEASE_BRANCH }}
target_branch: develop
github_token: ${{ secrets.MAINTAIN_TOKEN }}
bump-version:
needs: merge-release-branch-to-develop
runs-on: ubuntu-16.04
outputs:
prev_version: ${{ steps.bump_version_step.outputs.prev_version }}
steps:
- name: Checkout develop branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: develop
- name: Bump version
id: bump_version_step
run: |
npm config set git-tag-version false
PREV_PACKAGE_VERSION=$(node -p "require('./package.json').version")
npm version minor
PACKAGE_VERSION=$(node -p "require('./package.json').version")
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
echo "::set-output name=prev_version::${PREV_PACKAGE_VERSION}"
- name: Update readme.txt file
if: github.event.inputs.canary != 'true'
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/remove-readme-beta-tag.sh"
bash "${GITHUB_WORKSPACE}/.github/scripts/update-readme-stable-version.sh"
- name: Check if readme.txt update
env:
VERSION: ${{ env.PACKAGE_VERSION }}
run: |
npm install --no-package-lock --no-save marked@2.0.6
node ./.github/scripts/get-changelog-from-readme-txt.js
- name: Push new version to develop
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/update-version-elementor-php.sh"
bash "${GITHUB_WORKSPACE}/.github/scripts/commit-push-bump.sh"
publish:
needs: bump-version
runs-on: ubuntu-16.04
steps:
- name: Checkout master branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: master
- name: Merge develop -> master
uses: devmasx/merge-branch@a1752b9ba42bb417ec19be7dc974e2faf77d3ef2 # v1.3.1
with:
type: now
from_branch: develop
target_branch: master
github_token: ${{ secrets.MAINTAIN_TOKEN }}
- name: Checkout updated master branch
uses: actions/checkout@v2
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: master
- name: Install Dependencies
run: |
PACKAGE_VERSION=$(node -p "require('./package.json').version")
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
npm ci
- name: Build
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/build-zip.sh"
- name: Publish to WordPress.org SVN
env:
PLUGIN_VERSION: ${{ env.PACKAGE_VERSION }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/publish-to-wordpress-org.sh"
- name: Upload zip file to GitHub actions artifact
uses: actions/upload-artifact@v2
with:
name: elementor-${{ env.PACKAGE_VERSION }}
path: ${{ github.workspace }}/elementor/**/*
- name: Create tag
env:
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/create-git-tag.sh"
- name: Generate changelog
env:
TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
REPOSITORY: ${{ github.repository }}
HEAD_BRANCH_NAME: v${{ env.PACKAGE_VERSION }}
BASE_TAG_NAME: v${{ needs.bump-version.outputs.prev_version }}
run: |
npm install --no-package-lock --no-save @octokit/core@3.4.0
node ./.github/scripts/generate-changelog.js
- name: Read changelog from readme.txt
env:
VERSION: ${{ env.PACKAGE_VERSION }}
run: |
npm install --no-package-lock --no-save marked@2.0.6
node ./.github/scripts/get-changelog-from-readme-txt.js
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.PACKAGE_VERSION }}
files: elementor-*.zip
body_path: temp-changelog-from-changelog.txt
env:
GITHUB_TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
- name: Read changelog and set current date
run: |
CHANGELOG=$(cat temp-changelog.txt | tr -d '\n')
NOW=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
echo "CHANGELOG=${CHANGELOG}" >> $GITHUB_ENV
echo "NOW=${NOW}" >> $GITHUB_ENV
- name: Parse Jira Keys from changelog
id: jira_keys
uses: HighwayThree/jira-extract-issue-keys@8050830121f3eab19553d2f0c0150873a8d1b51b
with:
commit-message: '${{ env.CHANGELOG }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push Deployment Info to Jira
if: steps.jira_keys.outputs.jira-keys != ''
uses: HighwayThree/jira-upload-deployment-info@7cd4db1e5cc96692fd0b4c688407efd95ae3e610
with:
client-id: '${{ secrets.JIRA_CLIENT_ID }}'
client-secret: '${{ secrets.JIRA_CLIENT_SECRET }}'
cloud-instance-base-url: '${{ secrets.JIRA_CLOUD_INSTANCE_BASE_URL }}'
issue-keys: "${{ steps.jira_keys.outputs.jira-keys }}"
display-name: "${{ env.PACKAGE_VERSION }}"
url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
description: "This PR was merged to the following release(s)"
last-updated: '${{ env.NOW }}'
state: 'successful'
pipeline-id: '${{ github.repository }} ${{ github.workflow }}'
pipeline-url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
environment-id: "${{ env.PACKAGE_VERSION }}"
environment-display-name: "${{ env.PACKAGE_VERSION }}"
environment-type: 'production'
- name: Trigger developer-edition release
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.MAINTAIN_TOKEN }}
event-type: new-release
- name: Notify Slack
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNELS: ${{ secrets.SLACK_CHANNELS }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/slack-notify.sh"

View File

@@ -0,0 +1,40 @@
name: Elementor-ScreenShotter
on: [ push, pull_request ]
jobs:
run:
runs-on: ubuntu-16.04
timeout-minutes: 20
env:
screenshotter_config_path: ${{ github.workspace }}/tests/screenshotter/config.js
strategy:
fail-fast: false
matrix:
wordpress_versions: [ 'latest' ]
name: WordPress ${{ matrix.wordpress_versions }}
steps:
- name: Startup MySQL service
run: sudo /etc/init.d/mysql start
- name: Checkout source code
uses: actions/checkout@master
- name: Install Elementor-ScreenShotter
run: | ##### TO DO: Remove all sudo
sudo ln -sf /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm
sudo chown -R $USER /usr/local/lib/node_modules
sudo chown -R $USER /usr/local/bin/
npm i -g @elementor/screenshotter
- name: Install Dependencies
run: |
elementor-screenshotter-install --config=${screenshotter_config_path} --debug=true
- name: Import Templates
run: |
elementor-screenshotter-import-templates --config=${screenshotter_config_path} --debug=true
- name: Build Package & Run Test
run: |
elementor-screenshotter-run-test --config=${screenshotter_config_path} --debug=true --deepDebug=true
- uses: actions/upload-artifact@master
if: failure()
with:
name: backstop-output
path: /tmp/wordpress/backstop_data

View File

@@ -0,0 +1,40 @@
name: Sync Branches
on:
workflow_dispatch:
schedule:
- cron: '0 */2 * * *'
jobs:
run:
runs-on: ubuntu-16.04
if: startsWith( github.repository, 'elementor/' )
steps:
- name: Checkout master branch
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.MAINTAIN_TOKEN }}
ref: master
- name: Sync developer-edition branch
env:
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/sync-developer-edition-branch.sh"
- name: Sync feature branches into developer-edition branch
env:
TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
REPOSITORY: ${{ github.repository }}
run: |
npm install --no-package-lock --no-save @octokit/core@3.3.1
node "${GITHUB_WORKSPACE}/.github/scripts/sync-features-branch-to-developer-branch.js"
- name: Notify slack on failure
if: failure()
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNEL: ${{ secrets.SLACK_SYNC_CHANNEL }}
SLACK_BOT_NAME: ElementorBot
run: |
MESSAGE_TEXT="@channel Repo: *$GITHUB_REPOSITORY* Workflow: *$GITHUB_WORKFLOW* is FAILED - <$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID|link>"
curl -X POST "https://slack.com/api/chat.postMessage" -d "username=${SLACK_BOT_NAME}&token=${SLACK_TOKEN}&channel=${SLACK_CHANNEL}&text=${MESSAGE_TEXT}&link_names=true"

View File

@@ -0,0 +1,25 @@
amitaigat
arielk
Aviad-Herman
avivu
bainternet
danielkatz
DorShahar
guyc-E
iNewLegend
ItzhakAvm
joshmarom
KingYes
kobizz
matipojo
Nevoss
nisan250
nuritsha
ronkelementor
rotemee
shilo-ey
StyleShit
Tomer-elementor
Tzvi-ka
udidol
yonatanelm