Compare commits
7 Commits
more-cache
...
feature/co
Author | SHA1 | Date | |
---|---|---|---|
5ab8083cfb | |||
e399e3a289 | |||
a0f0fd27c6 | |||
66712a74ba | |||
38c236e286 | |||
1f81efa4ef | |||
2f73945f8f |
@ -9,6 +9,10 @@ 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
|
||||
@ -23,8 +27,16 @@ jobs:
|
||||
username: ${{ inputs.username }}
|
||||
password: ${{ inputs.password }}
|
||||
steps:
|
||||
- name: Setup composer authentication
|
||||
run: |
|
||||
if [ -f ${{ secrets.COMPOSER_AUTH_JSON }} ]
|
||||
cp ${{ secrets.COMPOSER_AUTH_JSON }} ~/.composer/auth.json
|
||||
fi
|
||||
|
||||
- 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
|
||||
```
|
||||
|
||||
### Secrets and Input Parameters
|
||||
### Input Parameters
|
||||
|
||||
- **username** (optional):
|
||||
- **Type:** `string`
|
||||
@ -22,6 +22,14 @@ 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.
|
||||
|
Reference in New Issue
Block a user