Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7cc9445818 | |||
| 0eb5497021 | |||
| 44c4f913ac | |||
| 25ca54414c | |||
| d9c49a41da |
@@ -15,6 +15,14 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
default: ${{ vars.REGISTRY_PASSWORD }}
|
||||
coverage:
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
coverage_args:
|
||||
required: false
|
||||
type: string
|
||||
default: '--coverage --coverage-clover=coverage.xml'
|
||||
|
||||
jobs:
|
||||
pest:
|
||||
@@ -24,9 +32,22 @@ jobs:
|
||||
credentials:
|
||||
username: ${{ inputs.username }}
|
||||
password: ${{ inputs.password }}
|
||||
|
||||
steps:
|
||||
- name: Setup composer
|
||||
uses: https://git.qlic.nl/actions/setup-composer@v1
|
||||
|
||||
- name: Run Pest
|
||||
run: ./vendor/bin/pest
|
||||
run: |
|
||||
if [ "${{ inputs.coverage }}" = "true" ]; then
|
||||
php -d pcov.enabled=1 -d pcov.directory=. ./vendor/bin/pest ${{ inputs.coverage_args }}
|
||||
else
|
||||
./vendor/bin/pest
|
||||
fi
|
||||
|
||||
- name: Upload coverage
|
||||
if: ${{ inputs.coverage }}
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: coverage
|
||||
path: coverage.xml
|
||||
Reference in New Issue
Block a user