-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/optimise-capture-charge-calls
- Loading branch information
Showing
982 changed files
with
39,915 additions
and
13,822 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
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
|
||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# Harmony owns any files in the .github directory at the root of the repository and any of its subdirectories. | ||
/.github/ @Automattic/harmony |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Commit and push as the github-actions bot" | ||
description: "Commit and push as the github-actions bot" | ||
|
||
inputs: | ||
release-version: | ||
description: "The release version to be used in the commit message" | ||
required: true | ||
branch: | ||
description: "The branch where the commit will be pushed" | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: "Commit and push changes" | ||
id: build_plugin | ||
shell: bash | ||
env: | ||
RELEASE_VERSION: ${{ inputs.release-version }} | ||
BRANCH_NAME: ${{ inputs.branch }} | ||
run: | | ||
git config user.name "github-actions[bot]" | ||
# We could consider fetching the bot's ID through an API call to be future-proof. Hardcoded for now. | ||
# See https://github.com/Automattic/woocommerce-payments/pull/5200#discussion_r1034560144 | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git commit -am "Update version and add changelog entries for release $RELEASE_VERSION" | ||
git push --set-upstream origin $BRANCH_NAME |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: "Set up PHP" | ||
description: "Extracts the required PHP version from plugin file and uses it to build PHP." | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: "Get minimum PHP version" | ||
shell: bash | ||
id: get_min_php_version | ||
run: | | ||
MIN_PHP_VERSION=$(sed -n 's/.*PHP: //p' woocommerce-payments.php) | ||
echo "MIN_PHP_VERSION=$MIN_PHP_VERSION" >> $GITHUB_OUTPUT | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ steps.get_min_php_version.outputs.MIN_PHP_VERSION }} | ||
tools: composer | ||
coverage: none |
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,29 +1,20 @@ | ||
name: "Setup WooCommerce Payments repository" | ||
description: "Handles the installation, building, and caching of the projects within the repository." | ||
|
||
inputs: | ||
php-version: | ||
description: "The version of PHP that the action should set up." | ||
default: "7.4" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: "Setup Node" | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
node-version-file: ".nvmrc" | ||
cache: "npm" | ||
|
||
- name: "Enable composer dependencies caching" | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/composer/ | ||
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }} | ||
|
||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ inputs.php-version }} | ||
tools: composer | ||
coverage: none | ||
|
||
- name: "Set up PHP" | ||
uses: ./.github/actions/setup-php |
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
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
Oops, something went wrong.