Update .gitea/workflows/pest.yml #3
@@ -1,57 +1,5 @@
|
|||||||
name: pest
|
name: pest
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
image:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: git.qlic.nl/qlic/quality:latest
|
|
||||||
username:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ${{ vars.REGISTRY_USERNAME }}
|
|
||||||
password:
|
|
||||||
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:
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
container:
|
|
||||||
image: ${{ inputs.image }}
|
|
||||||
credentials:
|
|
||||||
username: ${{ inputs.username }}
|
|
||||||
password: ${{ inputs.password }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Setup composer
|
|
||||||
uses: https://git.qlic.nl/actions/setup-composer@v1
|
|
||||||
|
|
||||||
- name: Run 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.xmlname: pest
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user