Compare commits
1 Commits
main
...
more-cache
Author | SHA1 | Date | |
---|---|---|---|
b7dfbc53b9 |
@ -1,10 +1,6 @@
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
image:
|
||||
required: false
|
||||
type: string
|
||||
default: git.qlic.nl/qlic/quality:php8.3
|
||||
username:
|
||||
required: false
|
||||
type: string
|
||||
@ -13,10 +9,6 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
default: ${{ vars.REGISTRY_PASSWORD }}
|
||||
composer-args:
|
||||
required: false
|
||||
type: string
|
||||
default: '--verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader --ignore-platform-reqs --no-scripts'
|
||||
environment-path:
|
||||
required: false
|
||||
type: string
|
||||
@ -26,15 +18,13 @@ jobs:
|
||||
quality:
|
||||
runs-on: ubuntu-24.04
|
||||
container:
|
||||
image: ${{ inputs.image }}
|
||||
image: git.qlic.nl/qlic/quality:latest
|
||||
credentials:
|
||||
username: ${{ inputs.username }}
|
||||
password: ${{ inputs.password }}
|
||||
steps:
|
||||
- name: Setup composer
|
||||
uses: https://git.qlic.nl/actions/setup-composer@v1
|
||||
with:
|
||||
args: ${{ inputs.composer-args }}
|
||||
|
||||
- name: Cache PHPStan
|
||||
uses: actions/cache@v4
|
||||
|
10
README.md
10
README.md
@ -10,7 +10,7 @@ jobs:
|
||||
uses: your-repo/.github/workflows/quality.yml@main
|
||||
```
|
||||
|
||||
### Input Parameters
|
||||
### Secrets and Input Parameters
|
||||
|
||||
- **username** (optional):
|
||||
- **Type:** `string`
|
||||
@ -22,14 +22,6 @@ jobs:
|
||||
- **Default:** `${{ vars.REGISTRY_PASSWORD }}`
|
||||
- **Description:** Password for Docker registry authentication. If not provided, the workflow uses the default value from the `REGISTRY_PASSWORD` environment variable.
|
||||
|
||||
- **composer-args** (optional):
|
||||
- **Type:** `string`
|
||||
- **Default:**
|
||||
```bash
|
||||
--verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader --ignore-platform-reqs --no-scripts
|
||||
```
|
||||
- **Description:** Arguments passed to the Composer setup command for PHP dependency installation. These arguments can be customized based on specific requirements.
|
||||
|
||||
## Workflow Job: `quality`
|
||||
|
||||
The `quality` job runs quality checks on the PHP codebase using the latest version of a Docker image specifically built for quality analysis.
|
||||
|
Loading…
x
Reference in New Issue
Block a user