Compare commits

..

2 Commits

Author SHA1 Message Date
5ab8083cfb Added new whiteline 2025-02-12 15:37:44 +01:00
e399e3a289 Added composer authentication to the steps 2025-02-12 15:37:22 +01:00

View File

@ -1,10 +1,6 @@
on: on:
workflow_call: workflow_call:
inputs: inputs:
image:
required: false
type: string
default: git.qlic.nl/qlic/quality:php8.3
username: username:
required: false required: false
type: string type: string
@ -26,11 +22,17 @@ jobs:
quality: quality:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
container: container:
image: ${{ inputs.image }} image: git.qlic.nl/qlic/quality:latest
credentials: credentials:
username: ${{ inputs.username }} username: ${{ inputs.username }}
password: ${{ inputs.password }} password: ${{ inputs.password }}
steps: steps:
- name: Setup composer authentication
run: |
if [ -f ${{ secrets.COMPOSER_AUTH_JSON }} ]
cp ${{ secrets.COMPOSER_AUTH_JSON }} ~/.composer/auth.json
fi
- name: Setup composer - name: Setup composer
uses: https://git.qlic.nl/actions/setup-composer@v1 uses: https://git.qlic.nl/actions/setup-composer@v1
with: with:
@ -59,6 +61,6 @@ jobs:
- name: Run php cs fixer - name: Run php cs fixer
run: ./vendor/bin/php-cs-fixer fix --diff --dry-run run: ./vendor/bin/php-cs-fixer fix --diff --dry-run
- name: Run audit - name: Run audit
run: composer audit run: composer audit