mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
docs: document unit, integration, and installation (#4)
This commit is contained in:
@@ -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 }}
|
||||
```
|
||||
@@ -15,7 +15,7 @@ on:
|
||||
- README.md
|
||||
|
||||
jobs:
|
||||
install-test:
|
||||
unit-test:
|
||||
strategy:
|
||||
matrix:
|
||||
php_version:
|
||||
|
||||
Reference in New Issue
Block a user