diff --git a/.github/workflows/integration-README.md b/.github/workflows/integration-README.md index 4c814ea..c2a94a2 100644 --- a/.github/workflows/integration-README.md +++ b/.github/workflows/integration-README.md @@ -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 }} ``` diff --git a/installation-test/README.md b/installation-test/README.md index 350ef56..49da4ca 100644 --- a/installation-test/README.md +++ b/installation-test/README.md @@ -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 ``` diff --git a/supported-version/README.md b/supported-version/README.md index 6f8cb5e..b76281f 100644 --- a/supported-version/README.md +++ b/supported-version/README.md @@ -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: - runs-on: ubuntu-latest - steps: - - uses: graycoreio/github-actions-magento2/supported-version@main + 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: actions/checkout@v2 + - run: echo ${{ matrix.magento }} ${{ matrix.os }} ${{ matrix.php }} + shell: bash ```