mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
docs: improve README for workflows and actions
This commit is contained in:
@@ -53,10 +53,9 @@ jobs:
|
|||||||
needs: compute_matrix
|
needs: compute_matrix
|
||||||
uses: graycoreio/github-actions-magento2/.github/workflows/integration.yaml@main
|
uses: graycoreio/github-actions-magento2/.github/workflows/integration.yaml@main
|
||||||
with:
|
with:
|
||||||
package_name: graycore/magento2-demo-package
|
package_name: my-vendor/package
|
||||||
source_folder: $GITHUB_WORKSPACE/_test/demo-package
|
|
||||||
matrix: ${{ needs.compute_matrix.outputs.matrix }}
|
matrix: ${{ needs.compute_matrix.outputs.matrix }}
|
||||||
test_command: ../../../vendor/bin/phpunit ../../../vendor/graycore/magento2-demo-package/Test/Integration
|
test_command: ../../../vendor/bin/phpunit ../../../vendor/my-vendor/package/Test/Integration
|
||||||
secrets:
|
secrets:
|
||||||
composer_auth: ${{ secrets.COMPOSER_AUTH }}
|
composer_auth: ${{ secrets.COMPOSER_AUTH }}
|
||||||
```
|
```
|
||||||
|
|||||||
+15
-42
@@ -20,56 +20,29 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
compute_matrix:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
matrix: ${{ steps.supported-version.outputs.matrix }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: graycoreio/github-actions-magento2/supported-version@main
|
||||||
|
id: supported-version
|
||||||
|
- run: echo ${{ steps.supported-version.outputs.matrix }}
|
||||||
|
|
||||||
install-test:
|
install-test:
|
||||||
|
needs: compute_matrix
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix: ${{ fromJSON(needs.compute_matrix.outputs.matrix) }}
|
||||||
magento:
|
|
||||||
- magento/project-community-edition:>=2.3 <2.4
|
|
||||||
- magento/project-community-edition:>=2.4.0 <2.4.1
|
|
||||||
- magento/project-community-edition:>=2.4.1 <2.4.2
|
|
||||||
- magento/project-community-edition:>=2.4.2 <2.4.3
|
|
||||||
- magento/project-community-edition:>=2.4.3 <2.4.4
|
|
||||||
- magento/project-community-edition:>=2.4.4 <2.4.5
|
|
||||||
- magento/project-community-edition
|
|
||||||
include:
|
|
||||||
|
|
||||||
- magento: magento/project-community-edition:>=2.3 <2.4
|
|
||||||
php_version: 7.4
|
|
||||||
composer_version: 1
|
|
||||||
|
|
||||||
- magento: magento/project-community-edition:>=2.4.0 <2.4.1
|
|
||||||
php_version: 7.4
|
|
||||||
composer_version: 1
|
|
||||||
|
|
||||||
- magento: magento/project-community-edition:>=2.4.1 <2.4.2
|
|
||||||
php_version: 7.4
|
|
||||||
composer_version: 1
|
|
||||||
|
|
||||||
- magento: magento/project-community-edition:>=2.4.2 <2.4.3
|
|
||||||
php_version: 7.4
|
|
||||||
composer_version: 2
|
|
||||||
|
|
||||||
- magento: magento/project-community-edition:>=2.4.3 <2.4.4
|
|
||||||
php_version: 7.4
|
|
||||||
composer_version: 2
|
|
||||||
|
|
||||||
- magento: magento/project-community-edition:>=2.4.4 <2.4.5
|
|
||||||
php_version: 8.1
|
|
||||||
composer_version: 2
|
|
||||||
|
|
||||||
- magento: magento/project-community-edition
|
|
||||||
composer_version: 2
|
|
||||||
php_version: 8.1
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: graycoreio/github-actions-magento2/installation-test@main
|
- uses: graycoreio/github-actions-magento2/installation-test@main
|
||||||
with:
|
with:
|
||||||
composer_version: ${{ matrix.composer_version }}
|
composer_version: ${{ matrix.composer }}
|
||||||
php_version: ${{ matrix.php_version }}
|
php_version: ${{ matrix.php }}
|
||||||
magento_version: ${{ matrix.magento }}
|
magento_version: ${{ matrix.magento }}
|
||||||
composer_auth: ${{ secrets.COMPOSER_AUTH }}
|
composer_auth: ${{ secrets.COMPOSER_AUTH }}
|
||||||
package_name: YOUR_PACKAGE_NAME
|
package_name: vendor/package
|
||||||
source_folder: $GITHUB_WORKSPACE
|
source_folder: $GITHUB_WORKSPACE
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ All data comes from:
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
name: Compute Magento 2 Supported Versions
|
name: Use Supported Versions
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -21,7 +21,23 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
runs-on: ubuntu-latest
|
compute_matrix:
|
||||||
steps:
|
runs-on: ubuntu-latest
|
||||||
- uses: graycoreio/github-actions-magento2/supported-version@main
|
outputs:
|
||||||
|
matrix: ${{ steps.supported-version.outputs.matrix }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: graycoreio/github-actions-magento2/supported-version@main
|
||||||
|
id: supported-version
|
||||||
|
- run: echo ${{ steps.supported-version.outputs.matrix }}
|
||||||
|
|
||||||
|
install-test:
|
||||||
|
needs: compute_matrix
|
||||||
|
strategy:
|
||||||
|
matrix: ${{ fromJSON(needs.compute_matrix.outputs.matrix) }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: echo ${{ matrix.magento }} ${{ matrix.os }} ${{ matrix.php }}
|
||||||
|
shell: bash
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user