docs: improve README for workflows and actions

This commit is contained in:
Damien Retzinger
2022-06-26 13:36:47 -04:00
parent 56cff9de0b
commit e7cf80c743
3 changed files with 37 additions and 49 deletions
+2 -3
View File
@@ -53,10 +53,9 @@ jobs:
needs: compute_matrix
uses: graycoreio/github-actions-magento2/.github/workflows/integration.yaml@main
with:
package_name: graycore/magento2-demo-package
source_folder: $GITHUB_WORKSPACE/_test/demo-package
package_name: my-vendor/package
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:
composer_auth: ${{ secrets.COMPOSER_AUTH }}
```
+15 -42
View File
@@ -20,56 +20,29 @@ on:
- main
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:
needs: compute_matrix
strategy:
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
matrix: ${{ fromJSON(needs.compute_matrix.outputs.matrix) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: graycoreio/github-actions-magento2/installation-test@main
with:
composer_version: ${{ matrix.composer_version }}
php_version: ${{ matrix.php_version }}
composer_version: ${{ matrix.composer }}
php_version: ${{ matrix.php }}
magento_version: ${{ matrix.magento }}
composer_auth: ${{ secrets.COMPOSER_AUTH }}
package_name: YOUR_PACKAGE_NAME
package_name: vendor/package
source_folder: $GITHUB_WORKSPACE
```
+18 -2
View File
@@ -10,7 +10,7 @@ All data comes from:
## Usage
```yml
name: Compute Magento 2 Supported Versions
name: Use Supported Versions
on:
push:
@@ -21,7 +21,23 @@ on:
- main
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:
needs: compute_matrix
strategy:
matrix: ${{ fromJSON(needs.compute_matrix.outputs.matrix) }}
runs-on: ubuntu-latest
steps:
- uses: graycoreio/github-actions-magento2/supported-version@main
- uses: actions/checkout@v2
- run: echo ${{ matrix.magento }} ${{ matrix.os }} ${{ matrix.php }}
shell: bash
```