Add setup composer action

This commit is contained in:
Jamie Schouten 2024-09-14 13:28:27 +02:00
parent 0280ddf05d
commit 079bada556

View File

@ -19,14 +19,8 @@ jobs:
username: ${{ secrets.REGISTRY_USERNAME }} username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }} password: ${{ secrets.REGISTRY_PASSWORD }}
steps: steps:
- name: Checkout - name: Setup composer
uses: actions/checkout@v4 uses: https://git.qlic.nl/actions/setup-composer@main
- name: Auth registry
run: composer config --global http-basic.git.qlic.nl ${{ secrets.REGISTRY_USERNAME }} ${{ secrets.REGISTRY_PASSWORD }}
- name: Install dependencies
run: composer install
- name: Run PHPStan - name: Run PHPStan
run: ./vendor/bin/phpstan analyse run: ./vendor/bin/phpstan analyse
@ -35,4 +29,4 @@ jobs:
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