docs: document unit, integration, and installation (#4)

This commit is contained in:
Damien Retzinger
2022-06-25 21:36:58 -04:00
committed by GitHub
parent d638c02eca
commit 984dda3efa
5 changed files with 169 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
# Integration Tests for a Magento Package
A Github Workflow that runs the Integration Tests of a Magento Package
## Inputs
See the [integration.yaml](./integration.yaml)
## Usage
```yml
name: Integration Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
integration-workflow:
uses: graycoreio/github-actions-magento2/.github/workflows/integration.yaml@main
with:
package_name: YOUR_PACKAGE_NAME
source_folder: $GITHUB_WORKSPACE
test_command: ../../../vendor/bin/phpunit ../../../vendor/YOUR_VENDOR/YOUR_PACKAGE_NAME/Test/Integration
secrets:
composer_auth: ${{ secrets.COMPOSER_AUTH }}
```
+1 -1
View File
@@ -15,7 +15,7 @@ on:
- README.md
jobs:
install-test:
unit-test:
strategy:
matrix:
php_version: